Skip to content

Commit 9246dc8

Browse files
committed
release 1.21.4
1 parent 2426d45 commit 9246dc8

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Changelog
22

3+
## 1.21.4
4+
5+
- Fix unsoundness in `OnceCell::wait` under `--features=parking_lot`, [#295](https://github.com/matklad/once_cell/pull/295).
6+
7+
If thread A calls `wait`, while thread B calls `get_or_try_init(f)`, and, furthermore, `f` panics,
8+
the `wait` incorrectly returns and thread A observes uninitialized memory.
9+
10+
Kudos to [@meng-xu-cs](https://github.com/meng-xu-cs) for a nice find!
11+
312
## 1.21.3
413

514
- Outline more initialization in `race`: [#284](https://github.com/matklad/once_cell/pull/284),

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "once_cell"
3-
version = "1.21.3"
3+
version = "1.21.4"
44
authors = ["Aleksey Kladov <aleksey.kladov@gmail.com>"]
55
license = "MIT OR Apache-2.0"
66
edition = "2021"

0 commit comments

Comments
 (0)