]> granicus.if.org Git - gc/commit
Bump GC_collect_at_heapsize in GC_add_to_heap. In the normal case it is
authorAndrew Horton <andrew.j.horton@gmail.com>
Sun, 15 Dec 2013 15:55:04 +0000 (15:55 +0000)
committerAndrew Horton <andrew.j.horton@gmail.com>
Sun, 15 Dec 2013 15:55:04 +0000 (15:55 +0000)
commitd30a448f3500f5951aec2ce014e7cdfdbe201484
treeb321572fb5916e0d20f43c21e0a11d25cdeff9f0
parentfae0f4b8139040c77d54449d976276bc53653990
Bump GC_collect_at_heapsize in GC_add_to_heap. In the normal case it is
recalculated straight after. But in the case where it's called directly
from alloc_mark_stack, it isn't. If the mark stack gets very large,
this can cause GC_should_collect to always return true, and
GC_alloc_large to get stuck in a loop calling GC_collect_or_expand.
alloc.c