From 892aa120d569d7d10c610f17c2bd840160fc98a1 Mon Sep 17 00:00:00 2001
From: bdemsky <bdemsky>
Date: Sat, 16 Jul 2011 08:59:52 +0000
Subject: [PATCH] small bug fix

---
 Robust/src/Runtime/bamboo/pmc_mem.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Robust/src/Runtime/bamboo/pmc_mem.c b/Robust/src/Runtime/bamboo/pmc_mem.c
index be245173..ac25f6b5 100644
--- a/Robust/src/Runtime/bamboo/pmc_mem.c
+++ b/Robust/src/Runtime/bamboo/pmc_mem.c
@@ -13,7 +13,7 @@ void * pmc_alloc(unsigned int * numbytesallocated, unsigned int minimumbytes) {
     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(&region->lock);
       startptr=region->lastptr;
-- 
2.34.1