Ticket #1737: gc-timing-fix2.diff

File gc-timing-fix2.diff, 0.7 KB (added by nwellnhof, 4 years ago)
  • src/gc/gc_ms.c

    diff --git a/src/gc/gc_ms.c b/src/gc/gc_ms.c
    index cc9aac2..aee7122 100644
    a b  
    15371537        pool->skip = GC_NO_SKIP; 
    15381538    else if (pool->skip == GC_NEVER_SKIP 
    15391539         || (pool->skip == GC_NO_SKIP 
    1540          && (new_mem > (mem_pools->mem_used_last_collect >> 1) 
    1541          &&  mem_pools->header_allocs_since_last_collect >= GC_SIZE_THRESHOLD))) 
     1540         &&  new_mem > (mem_pools->mem_used_last_collect >> 1) 
     1541         &&  new_mem >= GC_SIZE_THRESHOLD)) 
    15421542            Parrot_gc_mark_and_sweep(interp, GC_trace_stack_FLAG); 
    15431543 
    15441544    /* requires that num_free_objects be updated in Parrot_gc_mark_and_sweep.