Skip to content

gh-160697: Process the QSBR queue from the eval breaker, not from _PyMem_FreeDelayed() - #160698

Open
Eclips4 wants to merge 1 commit into
python:mainfrom
Eclips4:ft-free-delayed-reentrancy
Open

Eclips4 wants to merge 1 commit into
python:mainfrom
Eclips4:ft-free-delayed-reentrancy

Conversation

@Eclips4

@Eclips4 Eclips4 commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

@python-cla-bot

python-cla-bot Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

CLA signed

Comment on lines +58 to +68
def test_type_cache_invalidation(self):
class C:
x = None

holders = self.queue_finalizers(lambda: C.x)
for h in holders:
h.__dict__ = {}
C.x
new = object()
C.x = new
self.assertIs(C.x, new)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The type cache is unfortunately affected too.

@Eclips4 Eclips4 added needs backport to 3.14 bugs and security fixes needs backport to 3.15 bugs and security fixes labels Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant