<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/library/std/src/sys/thread_local, branch try</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=try</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=try'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2025-06-03T19:53:36+00:00</updated>
<entry>
<title>Rollup merge of #141455 - joboet:tls_exhaustion_abort, r=tgross35</title>
<updated>2025-06-03T19:53:36+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>476013+matthiaskrgr@users.noreply.github.com</email>
</author>
<published>2025-06-03T19:53:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d096ebf8d93e78b429c5c5866ecc60b3a5d9ed18'/>
<id>urn:sha1:d096ebf8d93e78b429c5c5866ecc60b3a5d9ed18</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Address review comments.</title>
<updated>2025-05-30T10:14:27+00:00</updated>
<author>
<name>Orson Peters</name>
<email>orsonpeters@gmail.com</email>
</author>
<published>2025-05-30T10:13:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b374adc9dbeec2cc969723dbfcb5c8ee990953bd'/>
<id>urn:sha1:b374adc9dbeec2cc969723dbfcb5c8ee990953bd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>When replacing an old value we may not drop it in place</title>
<updated>2025-05-28T15:53:14+00:00</updated>
<author>
<name>Orson Peters</name>
<email>orsonpeters@gmail.com</email>
</author>
<published>2025-05-28T15:52:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9ffbc62cb60f2151a38b6c5e18c016e406d10a62'/>
<id>urn:sha1:9ffbc62cb60f2151a38b6c5e18c016e406d10a62</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add same unsafe bound on get_or_init_slow</title>
<updated>2025-05-28T15:10:50+00:00</updated>
<author>
<name>Orson Peters</name>
<email>orsonpeters@gmail.com</email>
</author>
<published>2025-05-28T15:09:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8785f7b122bbb83d308035565f243ceb95ce4736'/>
<id>urn:sha1:8785f7b122bbb83d308035565f243ceb95ce4736</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Do not panic, maintain old behavior</title>
<updated>2025-05-28T14:56:26+00:00</updated>
<author>
<name>Orson Peters</name>
<email>orsonpeters@gmail.com</email>
</author>
<published>2025-05-28T14:56:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=13bce27e378267203f681470f947208b3e267558'/>
<id>urn:sha1:13bce27e378267203f681470f947208b3e267558</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Improve safety comment, double-drop is not relevant here</title>
<updated>2025-05-28T12:51:52+00:00</updated>
<author>
<name>Orson Peters</name>
<email>orsonpeters@gmail.com</email>
</author>
<published>2025-05-28T12:51:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f70cf59fc19b7717397e9701b4783f744983275f'/>
<id>urn:sha1:f70cf59fc19b7717397e9701b4783f744983275f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Do not move thread-locals before dropping</title>
<updated>2025-05-28T12:39:51+00:00</updated>
<author>
<name>Orson Peters</name>
<email>orsonpeters@gmail.com</email>
</author>
<published>2025-05-28T12:39:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b0f6b69b813aae1b7525d222ca1d2ba9c1fa25f1'/>
<id>urn:sha1:b0f6b69b813aae1b7525d222ca1d2ba9c1fa25f1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>std: abort the process on failure to allocate a TLS key</title>
<updated>2025-05-23T16:00:09+00:00</updated>
<author>
<name>joboet</name>
<email>jonasboettiger@icloud.com</email>
</author>
<published>2025-05-23T16:00:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8bf515330fb68ba10a54e9087a2b5629a968e766'/>
<id>urn:sha1:8bf515330fb68ba10a54e9087a2b5629a968e766</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>docs: fix typos</title>
<updated>2025-05-22T14:47:36+00:00</updated>
<author>
<name>Dannyyy93</name>
<email>dannymotydnd@gmail.com</email>
</author>
<published>2025-05-22T14:47:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d6dc08c3f4c32744c7163561da1a16825d1eed2d'/>
<id>urn:sha1:d6dc08c3f4c32744c7163561da1a16825d1eed2d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>use generic Atomic type where possible</title>
<updated>2025-04-26T23:18:08+00:00</updated>
<author>
<name>Christopher Durham</name>
<email>cad97@cad97.com</email>
</author>
<published>2024-09-19T04:15:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=4d93f6056824c338751f19356d33bb61ce818749'/>
<id>urn:sha1:4d93f6056824c338751f19356d33bb61ce818749</id>
<content type='text'>
in core/alloc/std only for now, and ignoring test files

Co-authored-by: Pavel Grigorenko &lt;GrigorenkoPV@ya.ru&gt;
</content>
</entry>
</feed>
