-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Which order to run box annihilator and TLS dtor? #8302
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
Comments
Actually, not sure what's going on here. It's late. Need sleep. |
This is exposed in a few compile-fail tests including |
Is the Definitely related to #6996. There may be no way around it no matter which runtime is plugged in. It strikes me as "just as bad" as failing from a destructor while unwinding. |
|
Note that this is likely also concerned modifying TLS when destroying TLS, or possibly creating |
cc me |
Gc has been removed so this is no longer relevant. |
…t-use, r=flip1995 Move `return_self_not_must_use` to `pedantic` r? `@flip1995` changelog: none
It looks like in the current codebase we need to run the annihilator before the TLS dtor because rustc has boxes in cycles that access TLS, but TLS dtors could also create cycles requiring GC. Not sure how to resolve this interdependency.
The text was updated successfully, but these errors were encountered: