-
Notifications
You must be signed in to change notification settings - Fork 406
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure a collection occurs between adjacent heap expansions
This also replaces the old algorithm to avoid expanding past limits used by blacklisting. * alloc.c (GC_collect_at_heapsize): Remove static variable. * alloc.c (GC_should_collect): Return true if GC_gc_no is equal to GC_last_heap_growth_gc_no (instead of checking of GC_collect_at_heapsize); add comment; reformat code. * alloc.c (GC_add_to_heap, GC_expand_hp_inner): Do not update GC_collect_at_heapsize value; remove comments. * alloc.c (GC_expand_hp_inner): Update GC_last_heap_growth_gc_no value (after GC_add_to_our_memory call). * include/private/gc_priv.h (GC_arrays._last_heap_growth_gc_no): New field.
- Loading branch information
Showing
2 changed files
with
8 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters