<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/library/std/src/thread, branch perf-tmp</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=perf-tmp</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=perf-tmp'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2025-10-02T08:27:48+00:00</updated>
<entry>
<title>Rollup merge of #146281 - Jules-Bertholet:static-align-thread-local, r=Mark-Simulacrum</title>
<updated>2025-10-02T08:27:48+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>476013+matthiaskrgr@users.noreply.github.com</email>
</author>
<published>2025-10-02T08:27:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=92aac1bdf61642cfc99498ca86e663cf53d2039e'/>
<id>urn:sha1:92aac1bdf61642cfc99498ca86e663cf53d2039e</id>
<content type='text'>
Support `#[rustc_align_static]` inside `thread_local!`

Tracking issue: rust-lang/rust#146177

```rust
thread_local! {
    #[rustc_align_static(64)]
    static SO_ALIGNED: u64 = const { 0 };
}
```

This increases the amount of recursion the macro performs (once per attribute in addition to the previous once per item), making it easier to hit the recursion limit. I’ve added workarounds to limit the impact in the case of long doc comments, but this still needs a crater run just in case.

r? libs

``@rustbot`` label A-attributes A-macros A-thread-locals F-static_align T-libs
</content>
</entry>
<entry>
<title>Add fast-path for accessing the current thread id</title>
<updated>2025-09-30T18:51:03+00:00</updated>
<author>
<name>Josh Simmons</name>
<email>josh@nega.tv</email>
</author>
<published>2025-06-26T19:31:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=cbaec31c10c5eff7342e5273360521911fbf7631'/>
<id>urn:sha1:cbaec31c10c5eff7342e5273360521911fbf7631</id>
<content type='text'>
Accessing the thread id is often used in profiling and debugging, as
well as some approaches for sound single-threaded access to data.

Currently the only way to access the thread id is by first obtaining a
handle to the current thread. While this is not exactly slow, it does
require an atomic inc-ref and dec-ref operation, as well as the
injection of `Thread`'s drop code into the caller.

This publicly exposes the existing fast-path for accessing the current
thread id.
</content>
</entry>
<entry>
<title>Hoist non-platform-specific code out of `thread_local_inner!`</title>
<updated>2025-09-27T21:05:39+00:00</updated>
<author>
<name>Jules Bertholet</name>
<email>julesbertholet@quoi.xyz</email>
</author>
<published>2025-09-27T19:47:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=4d32b9a1783343d42a9864fe3d2115daa2cb425e'/>
<id>urn:sha1:4d32b9a1783343d42a9864fe3d2115daa2cb425e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Support `#[rustc_align_static]` inside `thread_local!`</title>
<updated>2025-09-26T17:51:09+00:00</updated>
<author>
<name>Jules Bertholet</name>
<email>julesbertholet@quoi.xyz</email>
</author>
<published>2025-09-10T21:11:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a4e87e940620bc0e61caa7c42b1edc53c0aee7cb'/>
<id>urn:sha1:a4e87e940620bc0e61caa7c42b1edc53c0aee7cb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Change the cfg to a dash</title>
<updated>2025-09-21T17:12:20+00:00</updated>
<author>
<name>Ben Kimock</name>
<email>kimockb@gmail.com</email>
</author>
<published>2025-09-18T14:48:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=df58fd8cf7710f7516c541769a141f0235978dab'/>
<id>urn:sha1:df58fd8cf7710f7516c541769a141f0235978dab</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add panic=immediate-abort</title>
<updated>2025-09-21T17:12:18+00:00</updated>
<author>
<name>Ben Kimock</name>
<email>kimockb@gmail.com</email>
</author>
<published>2025-09-07T16:31:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=888679013d1f424adef06267f3630069b4cabd40'/>
<id>urn:sha1:888679013d1f424adef06267f3630069b4cabd40</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #145895 - RalfJung:unpark, r=joboet</title>
<updated>2025-09-12T10:02:10+00:00</updated>
<author>
<name>Stuart Cook</name>
<email>Zalathar@users.noreply.github.com</email>
</author>
<published>2025-09-12T10:02:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1037c082bc7d3ccd803b3eb0d48fc7fd81ddc733'/>
<id>urn:sha1:1037c082bc7d3ccd803b3eb0d48fc7fd81ddc733</id>
<content type='text'>
thread parking: fix docs and examples

Fixes https://github.com/rust-lang/rust/issues/145816

r? ```@joboet```
Cc ```@m-ou-se``` ```@Amanieu```
</content>
</entry>
<entry>
<title>std: move `thread` into `sys`</title>
<updated>2025-09-10T13:26:17+00:00</updated>
<author>
<name>joboet</name>
<email>jonasboettiger@icloud.com</email>
</author>
<published>2025-08-09T17:07:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ad08577a503dfd03e308bd272e76d95e31c6d0ef'/>
<id>urn:sha1:ad08577a503dfd03e308bd272e76d95e31c6d0ef</id>
<content type='text'>
</content>
</entry>
<entry>
<title>thread parking: fix docs and examples</title>
<updated>2025-09-03T07:14:25+00:00</updated>
<author>
<name>Ralf Jung</name>
<email>post@ralfj.de</email>
</author>
<published>2025-08-26T16:12:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=39d51d04e706dee462ac4a17508ed87eb52e7715'/>
<id>urn:sha1:39d51d04e706dee462ac4a17508ed87eb52e7715</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Tweak wording again</title>
<updated>2025-08-19T23:05:19+00:00</updated>
<author>
<name>Quinn Tucker</name>
<email>qxzcode@users.noreply.github.com</email>
</author>
<published>2025-08-19T23:05:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e84d29284c0f4d83e4033b39c6f21826d448373b'/>
<id>urn:sha1:e84d29284c0f4d83e4033b39c6f21826d448373b</id>
<content type='text'>
</content>
</entry>
</feed>
