From 15c1dc6e87aa39670341ef5c0e2dddb62770dda2 Mon Sep 17 00:00:00 2001 From: bdemsky Date: Thu, 30 Jun 2011 22:56:08 +0000 Subject: [PATCH] return freespace not usedspace --- Robust/src/Runtime/bamboo/multicoregarbage.c | 2 +- Robust/src/Runtime/bamboo/multicoremem.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Robust/src/Runtime/bamboo/multicoregarbage.c b/Robust/src/Runtime/bamboo/multicoregarbage.c index 7a315a6a..c161539d 100644 --- a/Robust/src/Runtime/bamboo/multicoregarbage.c +++ b/Robust/src/Runtime/bamboo/multicoregarbage.c @@ -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; diff --git a/Robust/src/Runtime/bamboo/multicoremem.c b/Robust/src/Runtime/bamboo/multicoremem.c index ac5e13b3..c06cf03b 100644 --- a/Robust/src/Runtime/bamboo/multicoremem.c +++ b/Robust/src/Runtime/bamboo/multicoremem.c @@ -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; } } -- 2.34.1