diff options
| author | bors <bors@rust-lang.org> | 2023-09-20 09:55:53 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-09-20 09:55:53 +0000 |
| commit | ed33e408c5299b4c1fd87a37e050180db9d642d5 (patch) | |
| tree | 82aa02a23d3ac4caa7a3414ab8f3abd19389d8b0 /compiler/rustc_mir_transform/src/coverage/counters.rs | |
| parent | 62d9034a0d571b78e518727d6cb4b090569e5238 (diff) | |
| parent | 207b6091d4d25db310a28f0f6bc6db50368dd00b (diff) | |
| download | rust-ed33e408c5299b4c1fd87a37e050180db9d642d5.tar.gz rust-ed33e408c5299b4c1fd87a37e050180db9d642d5.zip | |
Auto merge of #115753 - tgross35:threadinfo-refactor, r=thomcc
Refactor `thread_info` to remove the `RefCell` `thread_info` currently uses `RefCell`-based initialization. Refactor this to use `OnceCell` instead which is more performant and better suits the needs of one-time initialization. This is nobody's bottleneck but OnceCell checks are a single `cmp` vs. `RefCell<Option>` needing runtime logic
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/counters.rs')
0 files changed, 0 insertions, 0 deletions
