Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a multithreaded bug in llvm LazyInitJIT #3158

Merged
merged 2 commits into from
May 9, 2019
Merged

Conversation

yinghai
Copy link

@yinghai yinghai commented May 9, 2019

When llvm module is being called concurrently and threads are contending to do LazyInitJIT, one will enter first and fulfill ee_. The rest of them should just use ee_ instead of redoing the init jit process which will result in a coredump.

cc: @ajtulloch @hlu1 @antinucleon

@tqchen tqchen merged commit 4ac93a5 into apache:master May 9, 2019
@tqchen
Copy link
Member

tqchen commented May 9, 2019

Thanks, @yinghai ! This is now merged

@yinghai yinghai deleted the b1 branch May 9, 2019 17:29
wweic pushed a commit to wweic/tvm that referenced this pull request May 13, 2019
wweic pushed a commit to neo-ai/tvm that referenced this pull request May 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants