|
|
Log in / Subscribe / Register

Garbage Collector changes

Garbage Collector changes

Posted Aug 22, 2024 20:21 UTC (Thu) by StandingPad (guest, #171211)
Parent article: Python subinterpreters and free-threading

The article mentions that part of removing the GIL involves changing the garbage collector. I'm aware at the moment, CPython uses reference counting (which isn't parallel friendly), so does the free-threading build use a different method like mark-and-sweep, or does it use some variant of reference counting that is parallel friendly?


to post comments

Garbage Collector changes

Posted Aug 23, 2024 8:00 UTC (Fri) by bluss (guest, #47454) [Link]

See the relevant PEP-703 for an explanation of this https://peps.python.org/pep-0703/#reference-counting


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds