Commit c86701d
De-instrumenting code objects modifies the thread local bytecode for all threads as such, holding the critical section on the code object is not sufficient and leads to data races. Now, the de-instrumentation is now performed under a stop the world pause as such no thread races with executing the thread local bytecode while it is being de-instrumented.
(cherry picked from commit 9a6b60a)
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
1 parent b7168d2 commit c86701d
2 files changed
Lines changed: 13 additions & 8 deletions
File tree
- Misc/NEWS.d/next/Core_and_Builtins
- Python
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1190 | 1190 | | |
1191 | 1191 | | |
1192 | 1192 | | |
1193 | | - | |
| 1193 | + | |
| 1194 | + | |
1194 | 1195 | | |
1195 | | - | |
| 1196 | + | |
1196 | 1197 | | |
1197 | 1198 | | |
1198 | 1199 | | |
| |||
1381 | 1382 | | |
1382 | 1383 | | |
1383 | 1384 | | |
1384 | | - | |
| 1385 | + | |
| 1386 | + | |
1385 | 1387 | | |
1386 | | - | |
| 1388 | + | |
1387 | 1389 | | |
1388 | 1390 | | |
1389 | 1391 | | |
| |||
1438 | 1440 | | |
1439 | 1441 | | |
1440 | 1442 | | |
1441 | | - | |
| 1443 | + | |
| 1444 | + | |
1442 | 1445 | | |
1443 | | - | |
| 1446 | + | |
1444 | 1447 | | |
1445 | 1448 | | |
1446 | 1449 | | |
| |||
2995 | 2998 | | |
2996 | 2999 | | |
2997 | 3000 | | |
2998 | | - | |
| 3001 | + | |
| 3002 | + | |
2999 | 3003 | | |
3000 | | - | |
| 3004 | + | |
3001 | 3005 | | |
3002 | 3006 | | |
3003 | 3007 | | |
| |||
0 commit comments