Skip to content

[GR-79862] Fix inherited native weak reference offset. - #1164

Merged
graalvmbot merged 1 commit into
masterfrom
fa/GR-79862/inherited_weaklistoffset
Sep 23, 2026
Merged

graalvmbot merged 1 commit into
masterfrom
fa/GR-79862/inherited_weaklistoffset

Conversation

@graalvmbot

Copy link
Copy Markdown
Collaborator

GitHub Issue: #1157

A Python subclass (with slots) of a native weak-reference type could expose an incorrect native 'tp_weaklistoffset`, causing cyclic GC to interpret another field as a weakref list and hang.

This was because we didn't use the subclass’ precomputed hidden weakref offset when materializing its native type.

@oracle-contributor-agreement oracle-contributor-agreement Bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Sep 23, 2026
@graalvmbot
graalvmbot merged commit ae009fb into master Sep 23, 2026
42 of 44 checks passed
@graalvmbot
graalvmbot deleted the fa/GR-79862/inherited_weaklistoffset branch September 23, 2026 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants