diff options
author | Mark Shannon <mark@hotpy.org> | 2024-11-18 14:31:26 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-18 14:31:26 (GMT) |
commit | b0fcc2c47a34a69c35c1a8031cd0589d3747c1af (patch) | |
tree | aa9d4bfaf49dca8d3ce47aa18a03cf2d5374a8e2 /Python/ceval.c | |
parent | a1d9c8aa800dd7c9eb634f89646be10e9cfc9c8d (diff) | |
download | cpython-b0fcc2c47a34a69c35c1a8031cd0589d3747c1af.zip cpython-b0fcc2c47a34a69c35c1a8031cd0589d3747c1af.tar.gz cpython-b0fcc2c47a34a69c35c1a8031cd0589d3747c1af.tar.bz2 |
GH-126491: GC: Mark objects reachable from roots before doing cycle collection (GH-126502)
* Mark almost all reachable objects before doing collection phase
* Add stats for objects marked
* Visit new frames before each increment
* Remove lazy dict tracking
* Update docs
* Clearer calculation of work to do.
Diffstat (limited to 'Python/ceval.c')
-rw-r--r-- | Python/ceval.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index 9a608f0..3360e50 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -821,6 +821,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int entry_frame.instr_ptr = (_Py_CODEUNIT *)_Py_INTERPRETER_TRAMPOLINE_INSTRUCTIONS + 1; entry_frame.stackpointer = entry_frame.localsplus; entry_frame.owner = FRAME_OWNED_BY_CSTACK; + entry_frame.visited = 0; entry_frame.return_offset = 0; /* Push frame */ entry_frame.previous = tstate->current_frame; |