void *startptr=pmc_heapptr->regions[i].lastptr;
void *finishptr=(i+1)<NUMCORES4GC?pmc_heapptr->regions[i+1].lastptr:pmc_heapptr->regions[i].endptr;
- if ((finishptr-startptr)>memcheck) {
+ if ((finishptr-startptr)>=memcheck) {
struct pmc_region *region=&pmc_heapptr->regions[i];
tmc_spin_mutex_lock(®ion->lock);
startptr=region->lastptr;