mirror of
https://github.com/python/cpython.git
synced 2025-08-23 10:16:01 +00:00
gh-131740: Update PyUnstable_GC_VisitObjects to traverse perm gen (gh-131744)
This commit is contained in:
parent
a26a301f8b
commit
7bb41aef4b
2 changed files with 5 additions and 1 deletions
|
@ -2415,7 +2415,10 @@ PyUnstable_GC_VisitObjects(gcvisitobjects_t callback, void *arg)
|
|||
if (visit_generation(callback, arg, &gcstate->old[0])) {
|
||||
goto done;
|
||||
}
|
||||
visit_generation(callback, arg, &gcstate->old[1]);
|
||||
if (visit_generation(callback, arg, &gcstate->old[1])) {
|
||||
goto done;
|
||||
}
|
||||
visit_generation(callback, arg, &gcstate->permanent_generation);
|
||||
done:
|
||||
gcstate->enabled = origenstate;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue