Reset rustc's scoped TLS state during unwinding. #47201
Labels
A-thread-locals
Area: Thread local storage (TLS)
C-cleanup
Category: PRs that clean code up or issues documenting cleanup.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
This should only happen in the event of an ICE, but right now, if a
Drop
implementation (for e.g. a field inSession
) would try to access, say, theTLS_TCX
, it would use-after-free the globalTyCtxt
.The text was updated successfully, but these errors were encountered: