Skip to content

Commit 6c09d80

Browse files
committed
pythongh-131740: Update PyUnstable_GC_VisitObjects to visit perm gen
1 parent f3e275f commit 6c09d80

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Update PyUnstable_GC_VisitObjects to traverse perm gen.

Python/gc.c

+1
Original file line numberDiff line numberDiff line change
@@ -2415,6 +2415,7 @@ PyUnstable_GC_VisitObjects(gcvisitobjects_t callback, void *arg)
24152415
goto done;
24162416
}
24172417
visit_generation(callback, arg, &gcstate->old[1]);
2418+
visit_generation(callback, arg, &gcstate->permanent_generation);
24182419
done:
24192420
gcstate->enabled = origenstate;
24202421
}

0 commit comments

Comments
 (0)