<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/library/std/src/sync/mpmc/list.rs, branch 1.87.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.87.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.87.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2025-04-18T17:06:17+00:00</updated>
<entry>
<title>sync::mpsc: prevent double free on `Drop`</title>
<updated>2025-04-18T17:06:17+00:00</updated>
<author>
<name>Petros Angelatos</name>
<email>petrosagg@gmail.com</email>
</author>
<published>2025-04-08T19:37:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f31cf5cb7c8f2e7bb60c1806459895134e4d7268'/>
<id>urn:sha1:f31cf5cb7c8f2e7bb60c1806459895134e4d7268</id>
<content type='text'>
This PR is fixing a regression introduced by #121646 that can lead to a
double free when dropping the channel.

The details of the bug can be found in the corresponding crossbeam PR
https://github.com/crossbeam-rs/crossbeam/pull/1187

Signed-off-by: Petros Angelatos &lt;petrosagg@gmail.com&gt;
(cherry picked from commit b9e2ac5c7b1d6bb3b6f5fdfe0819eaf7e95bf7ff)
</content>
</entry>
<entry>
<title>sync::mpsc: add miri reproducer of double free</title>
<updated>2025-04-18T17:06:17+00:00</updated>
<author>
<name>Petros Angelatos</name>
<email>petrosagg@gmail.com</email>
</author>
<published>2025-04-10T08:09:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e71ad4a2c9da7100c092e095c80b6436d3193740'/>
<id>urn:sha1:e71ad4a2c9da7100c092e095c80b6436d3193740</id>
<content type='text'>
Signed-off-by: Petros Angelatos &lt;petrosagg@gmail.com&gt;
(cherry picked from commit 9eb6a5446a4e35f48ad22a5b70a74a8badb9fa0d)
</content>
</entry>
<entry>
<title>std: allow after-main use of synchronization primitives</title>
<updated>2024-11-18T16:55:36+00:00</updated>
<author>
<name>joboet</name>
<email>jonasboettiger@icloud.com</email>
</author>
<published>2024-11-07T16:13:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5a856b82f3a1bf335e0e62d92c800d8436977af1'/>
<id>urn:sha1:5a856b82f3a1bf335e0e62d92c800d8436977af1</id>
<content type='text'>
By creating an unnamed thread handle when the actual one has already been destroyed, synchronization primitives using thread parking can be used even outside the Rust runtime.

This also fixes an inefficiency in the queue-based `RwLock`: if `thread::current` was not initialized yet, it will create a new handle on every parking attempt without initializing `thread::current`. The private `current_or_unnamed` function introduced here fixes this.
</content>
</entry>
<entry>
<title>Initialize channel `Block`s directly on the heap</title>
<updated>2024-11-07T18:09:45+00:00</updated>
<author>
<name>Josh Stone</name>
<email>jistone@redhat.com</email>
</author>
<published>2024-11-07T17:51:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=03383ad1021bd0ba34c28d7fda16e634a9ec8df4'/>
<id>urn:sha1:03383ad1021bd0ba34c28d7fda16e634a9ec8df4</id>
<content type='text'>
The channel's `Block::new` was causing a stack overflow because it held
32 item slots, instantiated on the stack before moving to `Box::new`.
The 32x multiplier made modestly-large item sizes untenable.

That block is now initialized directly on the heap.

Fixes #102246
</content>
</entry>
<entry>
<title>Fixed some typos in the standard library documentation/comments</title>
<updated>2024-08-31T05:41:01+00:00</updated>
<author>
<name>ranger-ross</name>
<email>rosssullivan101@gmail.com</email>
</author>
<published>2024-08-31T05:41:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=24ad26db3b8bac3c812d797cb34df76f1bff306b'/>
<id>urn:sha1:24ad26db3b8bac3c812d797cb34df76f1bff306b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Reformat `use` declarations.</title>
<updated>2024-07-28T22:26:52+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2024-07-28T22:13:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=84ac80f1921afc243d71fd0caaa4f2838c294102'/>
<id>urn:sha1:84ac80f1921afc243d71fd0caaa4f2838c294102</id>
<content type='text'>
The previous commit updated `rustfmt.toml` appropriately. This commit is
the outcome of running `x fmt --all` with the new formatting options.
</content>
</entry>
<entry>
<title>std: Unsafe-wrap std::sync</title>
<updated>2024-07-15T00:59:37+00:00</updated>
<author>
<name>Jubilee Young</name>
<email>workingjubilee@gmail.com</email>
</author>
<published>2024-07-15T00:59:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e32460276cb146b665c0c18b50bf6ea7764c693b'/>
<id>urn:sha1:e32460276cb146b665c0c18b50bf6ea7764c693b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix typos</title>
<updated>2024-02-29T06:33:02+00:00</updated>
<author>
<name>Ibraheem Ahmed</name>
<email>ibraheem@ibraheem.ca</email>
</author>
<published>2024-02-29T06:33:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=7c9fa952c3be1f7d0872fe9cd5f1f4a0327771b9'/>
<id>urn:sha1:7c9fa952c3be1f7d0872fe9cd5f1f4a0327771b9</id>
<content type='text'>
Co-authored-by: Ralf Jung &lt;post@ralfj.de&gt;</content>
</entry>
<entry>
<title>document potential memory leak in unbounded channel</title>
<updated>2024-02-29T05:56:31+00:00</updated>
<author>
<name>Ibraheem Ahmed</name>
<email>ibraheem@ibraheem.ca</email>
</author>
<published>2024-02-29T05:56:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9c6a0766be95fc197f4f30764a794eb4d50b649a'/>
<id>urn:sha1:9c6a0766be95fc197f4f30764a794eb4d50b649a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix race between block initialization and receiver disconnection</title>
<updated>2024-02-26T18:53:35+00:00</updated>
<author>
<name>Ibraheem Ahmed</name>
<email>ibraheem@ibraheem.ca</email>
</author>
<published>2024-02-26T18:53:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=580b003edd9653201583df2944875a3605739f96'/>
<id>urn:sha1:580b003edd9653201583df2944875a3605739f96</id>
<content type='text'>
</content>
</entry>
</feed>
