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
This commit is contained in:
bors 2023-09-20 09:55:53 +00:00
commit 4839d8977b

Diff content is not available