Commit cbdda9f
committed
pythongh-120158: Fix monitoring state when setting events too frequently
If we overflowed the global version counter (i.e., after 2*24 calls to
_PyMonitoring_SetEvents), we bailed out after setting global monitoring
events but before insturmenting code objects, which led to assertion
errors later on.
Also add a time.sleep() to test_free_threading.test_monitoring to avoid
overflowing the global version counter.1 parent 49ff8b6 commit cbdda9f
File tree
2 files changed
+3
-1
lines changed- Misc/NEWS.d/next/Core_and_Builtins
- Python
2 files changed
+3
-1
lines changedLines 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 | |
|---|---|---|---|
| |||
2021 | 2021 | | |
2022 | 2022 | | |
2023 | 2023 | | |
2024 | | - | |
2025 | 2024 | | |
2026 | 2025 | | |
2027 | 2026 | | |
2028 | 2027 | | |
2029 | 2028 | | |
| 2029 | + | |
2030 | 2030 | | |
2031 | 2031 | | |
2032 | 2032 | | |
| |||
0 commit comments