Commit 356a9e6
authored
[3.13] pythongh-129668: Fix thread-safety of MemoryError freelist in free threaded build (pythongh-129704) (pythongh-129742)
The MemoryError freelist was not thread-safe in the free threaded build.
Use a mutex to protect accesses to the freelist. Unlike other freelists,
the MemoryError freelist is not performance sensitive.
(cherry picked from commit 51b4edb)1 parent de84531 commit 356a9e6
File tree
3 files changed
+41
-26
lines changed- Include/internal
- Misc/NEWS.d/next/Core and Builtins
- Objects
3 files changed
+41
-26
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
27 | 30 | | |
28 | 31 | | |
29 | 32 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3313 | 3313 | | |
3314 | 3314 | | |
3315 | 3315 | | |
| 3316 | + | |
| 3317 | + | |
| 3318 | + | |
| 3319 | + | |
| 3320 | + | |
| 3321 | + | |
| 3322 | + | |
| 3323 | + | |
3316 | 3324 | | |
3317 | 3325 | | |
3318 | 3326 | | |
3319 | | - | |
| 3327 | + | |
3320 | 3328 | | |
3321 | | - | |
3322 | | - | |
3323 | | - | |
3324 | | - | |
3325 | | - | |
3326 | | - | |
3327 | | - | |
3328 | | - | |
3329 | | - | |
3330 | 3329 | | |
3331 | | - | |
3332 | | - | |
3333 | | - | |
3334 | | - | |
| 3330 | + | |
| 3331 | + | |
| 3332 | + | |
| 3333 | + | |
| 3334 | + | |
| 3335 | + | |
| 3336 | + | |
| 3337 | + | |
| 3338 | + | |
| 3339 | + | |
| 3340 | + | |
| 3341 | + | |
3335 | 3342 | | |
3336 | | - | |
3337 | | - | |
| 3343 | + | |
| 3344 | + | |
3338 | 3345 | | |
3339 | 3346 | | |
3340 | | - | |
3341 | | - | |
3342 | | - | |
3343 | | - | |
3344 | | - | |
3345 | | - | |
| 3347 | + | |
| 3348 | + | |
| 3349 | + | |
| 3350 | + | |
| 3351 | + | |
| 3352 | + | |
3346 | 3353 | | |
3347 | 3354 | | |
3348 | 3355 | | |
| |||
3387 | 3394 | | |
3388 | 3395 | | |
3389 | 3396 | | |
3390 | | - | |
3391 | | - | |
3392 | | - | |
3393 | | - | |
| 3397 | + | |
| 3398 | + | |
3394 | 3399 | | |
3395 | 3400 | | |
3396 | 3401 | | |
| 3402 | + | |
| 3403 | + | |
3397 | 3404 | | |
| 3405 | + | |
| 3406 | + | |
| 3407 | + | |
3398 | 3408 | | |
3399 | 3409 | | |
3400 | 3410 | | |
| |||
0 commit comments