-
Notifications
You must be signed in to change notification settings - Fork 7
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
Call thread-local variable destructors on thread exit #19
Comments
Those are now called by the default implementation in |
Oh? Do you have a link I can look at? |
Hmm, I thought this would be the case too, since we have I would have expected the dtor to be registered here: https://github.com/rust-lang/rust/blob/master/library/std/src/sys/common/thread_local/fast_local.rs#L52 We might want to reopen this and investigate more; I'm not sure what is the best way to prove that |
I've done some research, and I've noticed 2 things:
It's hard to understand why, even with |
I'll need to refresh myself on the current state of our thread local implementation, but I thought we had to explicitly call the thread destructors when the thread gets destroyed by us? Around here maybe? Line 89 in c885d8c |
You are correct. I had started looking at the problem with the misconception that |
Currently we don't call thread local variable destructors when the thread exits. We should probably fix this.
The text was updated successfully, but these errors were encountered: