Skip to content

Conversation

@apeskov
Copy link
Contributor

@apeskov apeskov commented May 17, 2022

Current implementation of "__init_XXX" method is not thread safe. So simple multi instance execution/initialization of BYOC json based runtime may lead to data race.

Simple WA is just to add mutex guard.

Signed-off-by: Alexander Peskov <peskovnn@gmail.com>
@apeskov
Copy link
Contributor Author

apeskov commented May 17, 2022

@masahi Please take a look. THis is a part of changes from #9618.

Copy link
Contributor

@comaniac comaniac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@masahi masahi merged commit 2f7d732 into apache:main May 17, 2022
shingjan pushed a commit to shingjan/tvm that referenced this pull request May 17, 2022
Signed-off-by: Alexander Peskov <peskovnn@gmail.com>
@areusch areusch mentioned this pull request May 23, 2022
@apeskov apeskov deleted the ap/byoc-threadsafe-initializer branch March 27, 2023 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants