return freespace not usedspace
authorbdemsky <bdemsky>
Thu, 30 Jun 2011 22:56:08 +0000 (22:56 +0000)
committerbdemsky <bdemsky>
Thu, 30 Jun 2011 22:56:08 +0000 (22:56 +0000)
Robust/src/Runtime/bamboo/multicoregarbage.c
Robust/src/Runtime/bamboo/multicoremem.c

index 7a315a6a3c46216d584482d6f669a36fdc2958f9..c161539d3a23de89628bbcd5c558aa77fbafff96 100644 (file)
@@ -417,7 +417,7 @@ void master_finish() {
 }
 
 void gc_master(struct garbagelist * stackptr) {
-  //tprintf("start GC !!!!!!!!!!!!! \n");
+  tprintf("start GC!\n");
   gc_status_info.gcprocessing = true;
   gc_status_info.gcphase = INITPHASE;
 
index ac5e13b3d7666f6120f86ad60cc00654a72861e8..c06cf03b3889e0cc5e649ccef7fdd1916c3f27ec 100644 (file)
@@ -60,7 +60,7 @@ void * fixedmalloc_I(int coren,
            block->status=BS_USED;
            void *blockptr=OFFSET2BASEVA(globalblockindex)+gcbaseva;
            unsigned INTPTR usedspace=((block->usedspace-1)&~BAMBOO_CACHE_LINE_MASK)+BAMBOO_CACHE_LINE_SIZE;
-           *allocsize=usedspace;
+           *allocsize=freespace;
            return blockptr+usedspace;
          }
        }