diff options
Diffstat (limited to 'libgc/alloc.c')
-rw-r--r-- | libgc/alloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgc/alloc.c b/libgc/alloc.c index 9ec6992352a..b6bc1832c99 100644 --- a/libgc/alloc.c +++ b/libgc/alloc.c @@ -969,7 +969,7 @@ word n; } # endif expansion_slop = WORDS_TO_BYTES(min_words_allocd()) + 4*MAXHINCR*HBLKSIZE; - if (GC_last_heap_addr == 0 && !((word)space & SIGNB) + if ((GC_last_heap_addr == 0 && !((word)space & SIGNB)) || (GC_last_heap_addr != 0 && GC_last_heap_addr < (ptr_t)space)) { /* Assume the heap is growing up */ GC_greatest_plausible_heap_addr = |