GH-141890: Fix GC double-counting of marked objects#141891
GH-141890: Fix GC double-counting of marked objects#141891brandtbucher wants to merge 2 commits intopython:mainfrom
Conversation
|
JFYI, #127519
Unfortunately, #127519 was reverted. I had planned to try to fix it, but it's still on my to-do list. |
|
Ah, interesting. Let's benchmark this change. If the current version is better, we can just multiply by two to be explicit instead of the current code (which looks like a mistake, because originally it was). :) |
This move happens twice: once here, and once in
gc_collect_increment(the caller).