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

Make jl_current_module thread local #14728

Merged
merged 2 commits into from
Jan 20, 2016
Merged

Make jl_current_module thread local #14728

merged 2 commits into from
Jan 20, 2016

Conversation

yuyichao
Copy link
Contributor

So that evaling on a thread won't interfere with other threads.

Add test for this and make sure that the current module on the thread is still the same with the one on the main thread with the work is created.

Also remove ti_threadgroup_barrier since it appears to be leaky and not used anymore.

Fix #14726

@yuyichao yuyichao added the multithreading Base.Threads and related functionality label Jan 19, 2016
@JeffBezanson
Copy link
Sponsor Member

👍

I would remove ti_threadgroup_barrier in a separate commit since it's really not related to this.

So that `eval`ing on a thread won't interfere with other thread.
Add test for this and make sure that the current module on the thread
is still the same with the one on the main thread with the work is
created.

Fix #14726
Since it appears to be leaky and not needed anymore.
@yuyichao
Copy link
Contributor Author

Done.

@yuyichao
Copy link
Contributor Author

Tests passes with threading enabled locally.

@JeffBezanson
Copy link
Sponsor Member

Thanks.

yuyichao added a commit that referenced this pull request Jan 20, 2016
Make jl_current_module thread local
@yuyichao yuyichao merged commit 83b2497 into master Jan 20, 2016
@yuyichao yuyichao deleted the yyc/tls-cur-module branch January 20, 2016 05:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
multithreading Base.Threads and related functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants