diff options
| author | Nicholas Nethercote <nnethercote@mozilla.com> | 2020-07-31 13:01:29 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <nnethercote@mozilla.com> | 2020-08-03 09:40:41 +1000 |
| commit | d93277b9150d50fae4b086cd6efe2a006b3d88da (patch) | |
| tree | 4ff3d4399abf9b54a0cf281ac08635fe6727be49 /src/test/rustdoc-ui/coverage/json.rs | |
| parent | f042d749b0fc212bff6bdc44b84e134b878bff64 (diff) | |
| download | rust-d93277b9150d50fae4b086cd6efe2a006b3d88da.tar.gz rust-d93277b9150d50fae4b086cd6efe2a006b3d88da.zip | |
Remove `GCX_PTR`.
We store an `ImplicitCtxt` pointer in a thread-local value (TLV). This allows implicit access to a `GlobalCtxt` and some other things. We also store a `GlobalCtxt` pointer in `GCX_PTR`. This is always the same `GlobalCtxt` as the one within the `ImplicitCtxt` pointer in TLV. `GCX_PTR` is only used in the parallel compiler's `handle_deadlock()` function. This commit does the following. - It removes `GCX_PTR`. - It also adds `ImplicitCtxt::new()`, which constructs an `ImplicitCtxt` from a `GlobalCtxt`. `ImplicitCtxt::new()` + `tls::enter_context()` is now equivalent to the old `tls::enter_global()`. - Makes `tls::get_tlv()` public for the parallel compiler, because it's now used in `handle_deadlock()`.
Diffstat (limited to 'src/test/rustdoc-ui/coverage/json.rs')
0 files changed, 0 insertions, 0 deletions
