We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
GCX_PTR
1 parent f4cecad commit b304272Copy full SHA for b304272
compiler/rustc_middle/src/ty/context/tls.rs
@@ -200,5 +200,9 @@ impl GcxPtr {
200
unsafe impl Sync for GcxPtr {}
201
202
scoped_tls::scoped_thread_local! {
203
+ /// This is needed to allow the deadlock handler access to `GlobalCtxt` to look for query cycles.
204
+ /// It cannot use the `TLV` global is that's only guaranteed to be defined on the thread creating
205
+ /// the `GlobalCtxt`. Other thread have access to the `TLV` only inside Rayon jobs, but the
206
+ /// deadlock handler is not called inside such a job.
207
pub static GCX_PTR: GcxPtr
208
}
0 commit comments