gh-135909: Assert incoming `refcnt != 0` for the free threaded GC (GH-136009)
This helps catch double deallocation bugs and is similar to the assertion in the GIL-enabled build. The call to `validate_refcounts` is moved up to start of the GC because `queue_untracked_obj_decref()` creates it own zero reference count garbage.
A
andrewreds committed
2500eb96b260b05387d4ab1063fcfafebf37f1a4
Parent: be02e68
Committed by GitHub <[email protected]>
on 7/15/2025, 3:26:16 PM