| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2024-06-04 | Auto merge of #125525 - joboet:tls_accessor, r=cuviper | bors | -172/+103 | |
| Make TLS accessors closures that return pointers The current TLS macros generate a function that returns an `Option<&'static T>`. This is both risky as we lie about lifetimes, and necessitates that those functions are `unsafe`. By returning a `*const T` instead, the accessor function do not have safety requirements any longer and can be made closures without hassle. This PR does exactly that! For native TLS, the closure approach makes it trivial to select the right accessor function at compile-time, which could result in a slight speed-up (I have the hope that the accessors are now simple enough for the MIR-inliner to kick in). | ||||
| 2024-06-02 | typo: depending from -> on | Ralf Jung | -1/+1 | |
| 2024-05-25 | std: make TLS accessors closures that return pointers | joboet | -172/+103 | |
| 2024-05-24 | std: clean up the TLS implementation | joboet | -3/+4 | |
| 2024-05-24 | std: simplify key-based thread locals | joboet | -185/+60 | |
| 2024-05-24 | Auto merge of #123724 - joboet:static_tls, r=m-ou-se | bors | -70/+76 | |
| Rewrite TLS on platforms without threads The saga of #110897 continues! r? `@m-ou-se` if you have time | ||||
| 2024-05-23 | std: rewrite native thread-local storage | joboet | -248/+330 | |
| 2024-04-30 | std: rewrite TLS on platforms without threads | joboet | -70/+76 | |
| 2024-04-26 | thread_local: refine LazyKeyInner::take safety doc | Jubilee | -1/+1 | |
| Co-authored-by: joboet <jonasboettiger@icloud.com> | ||||
| 2024-04-25 | thread_local: split refs to fields of Key | Jubilee Young | -3/+4 | |
| 2024-04-25 | thread_local: use less &mut T in LazyKeyInner::take | Jubilee Young | -6/+8 | |
| Instead, use raw pointers to accomplish internal mutability throughout. | ||||
| 2024-04-15 | static_mut_refs: use raw pointers to remove the remaining FIXME | Ralf Jung | -3/+2 | |
| 2024-03-20 | step cfgs | Mark Rousskov | -2/+1 | |
| 2024-03-16 | Use `UnsafeCell` for fast constant thread locals | John Kåre Alsaker | -8/+7 | |
| 2024-02-28 | std: move thread local implementation to `sys` | joboet | -0/+664 | |
