gh-123619: Fix PyUnstable_Object_EnableDeferredRefcount()#151260
Conversation
Return 0 if the object is not tracked by the GC.
|
I propose backporting the fix to 3.14 and 3.15 branches. Enabling deferred refcount on an object which is not tracked by the GC can lead to nasty bugs. |
test_ssl failed. So far, I failed to reproduce the issue locally. I built Python with |
I created #151268 to log the output when a TSAN test fails. |
ZeroIntensity
left a comment
There was a problem hiding this comment.
test_ssl being thread-unsafe is a known issue. This looks right.
|
I created #151277 for the TSan+test_ssl issue. |
|
Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14, 3.15. |
|
GH-151326 is a backport of this pull request to the 3.15 branch. |
|
GH-151327 is a backport of this pull request to the 3.14 branch. |
Return 0 if the object is not tracked by the GC.