Files
rust/library
Matthias Krüger d096ebf8d9 Rollup merge of #141455 - joboet:tls_exhaustion_abort, r=tgross35
std: abort the process on failure to allocate a TLS key

The panic machinery uses TLS, so panicking if no TLS keys are left can lead to infinite recursion (see https://github.com/rust-lang/rust/issues/140798#issuecomment-2872307377). Rather than having separate logic for the panic count and the thread name, just always abort the process if a TLS key allocation fails. This also has the benefit of aligning the key-based TLS implementation with the documentation, which does not mention that a panic could also occur because of resource exhaustion.
2025-06-03 21:53:36 +02:00
..
2025-05-07 13:08:19 +08:00
2025-06-03 10:52:32 -07:00
2025-03-10 21:23:31 +08:00
2025-05-21 13:41:58 +02:00
2025-05-01 20:01:43 +05:30
2025-05-07 13:08:19 +08:00
2025-05-30 16:09:12 +00:00