Commit c11755d
pythongh-136870: fix data races in instrumentation of bytecode (python#136994)
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.1 parent a7fae98 commit c11755d
File tree
2 files changed
+13
-8
lines changed- Misc/NEWS.d/next/Core_and_Builtins
- Python
2 files changed
+13
-8
lines changedLines 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