Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.1k
Commit53e6d76
authored
Fix data race detected by tsan(https://github.com/python/cpython/actions/runs/14857021107/job/41712717208?pr=133502):young.count can be modified by other threads even while the gcstate islocked.This is the simplest fix to (potentially) unblock beta 1, although thisparticular code path seems like it could just be an atomic swap followed byan atomic add, without having the lock at all.
1 parent296cd12 commit53e6d76
1 file changed
+2
-3
lines changedLines changed: 2 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2074 | 2074 |
| |
2075 | 2075 |
| |
2076 | 2076 |
| |
| 2077 | + | |
2077 | 2078 |
| |
2078 |
| - | |
2079 |
| - | |
2080 |
| - | |
| 2079 | + | |
2081 | 2080 |
| |
2082 | 2081 |
| |
2083 | 2082 |
| |
|
0 commit comments
Comments
(0)