FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.14] gh-120158: Fix inconsistent monitoring state when setting events too frequently (gh-141845) by miss-islington · Pull Request #141879 · python/cpython · GitHub

/ cpython Public

[3.14] gh-120158: Fix inconsistent monitoring state when setting events too frequently (gh-141845) - #141879

Merged
colesbury merged 1 commit into
python:3.14from
miss-islington:backport-e457d60-3.14
Nov 23, 2025
Merged

[3.14] gh-120158: Fix inconsistent monitoring state when setting events too frequently (gh-141845)#141879
colesbury merged 1 commit into
python:3.14from
miss-islington:backport-e457d60-3.14

Conversation

miss-islington commented Nov 23, 2025
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Contributor

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 instrumenting 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.
(cherry picked from commit e457d60)

Co-authored-by: Sam Gross colesbury@gmail.com

…s too frequently (pythongh-141845)

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 instrumenting 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.
(cherry picked from commit e457d60)

Co-authored-by: Sam Gross <colesbury@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL