We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f6d04e commit 9cfb5f0Copy full SHA for 9cfb5f0
Lib/test/test_gc.py
@@ -1134,7 +1134,7 @@ def make_ll(depth):
1134
olds.append(newhead)
1135
if len(olds) == 20:
1136
new_objects = _testinternalcapi.get_heap_size() - initial_heap_size
1137
- self.assertLess(new_objects, 27_000)
+ self.assertLess(new_objects, 25_000)
1138
del olds[:]
1139
if not enabled:
1140
gc.disable()
Python/gc.c
@@ -1576,7 +1576,7 @@ assess_work_to_do(GCState *gcstate)
1576
}
1577
gcstate->young.count = 0;
1578
gcstate->prior_heap_size = gcstate->heap_size;
1579
- return new_objects*2 + growth*2 + heap_fraction;
+ return new_objects*3/2 + growth*2 + heap_fraction*3/2;
1580
1581
1582
static void
0 commit comments