mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
gh-112529: Implement GC for free-threaded builds (#114262)
* gh-112529: Implement GC for free-threaded builds This implements a mark and sweep GC for the free-threaded builds of CPython. The implementation relies on mimalloc to find GC tracked objects (i.e., "containers").
This commit is contained in:
parent
4850410b60
commit
b52fc70d1a
18 changed files with 1952 additions and 22 deletions
|
@ -3652,10 +3652,8 @@ class TextIOWrapperTest(unittest.TestCase):
|
|||
codecs.lookup('utf-8')
|
||||
|
||||
class C:
|
||||
def __init__(self):
|
||||
self.buf = io.BytesIO()
|
||||
def __del__(self):
|
||||
io.TextIOWrapper(self.buf, **{kwargs})
|
||||
io.TextIOWrapper(io.BytesIO(), **{kwargs})
|
||||
print("ok")
|
||||
c = C()
|
||||
""".format(iomod=iomod, kwargs=kwargs)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue