Skip to content

N-12 step 2 decision: borrow only virtual objects, gc race test (#143, #193) - #281

Merged
b-re-w merged 1 commit into
developfrom
feat/tp-n12-borrow
Oct 25, 2026
Merged

b-re-w merged 1 commit into
developfrom
feat/tp-n12-borrow

Conversation

@b-re-w

@b-re-w b-re-w commented Oct 25, 2026

Copy link
Copy Markdown
Member

SPEC N-12: on 3.15t no real object is thread-local (gc.get_objects/get_referrers reach a fresh object), so real field reads keep PyMember_GetOne and only N-12a virtual objects are borrowed. Adds a gc.get_objects race test whose borrowed-read mutant crashes, and virtual/fresh calls to the TSan script. Mutant tests count a hung child as caught (seen under load). The test also exposed #280 (chunked loops poll too rarely), so it uses a TP_POLL_INTERVAL=32 header.

Closes #143
Closes #193

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.

1 participant