From a0d257db0a5d9e4c152dacb6fedac65a59c3f394 Mon Sep 17 00:00:00 2001 From: bdemsky Date: Thu, 14 Jul 2011 22:35:46 +0000 Subject: [PATCH] bug fix.... --- Robust/src/Runtime/bamboo/multicoregccompact.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Robust/src/Runtime/bamboo/multicoregccompact.c b/Robust/src/Runtime/bamboo/multicoregccompact.c index 89385215..75b0b3fc 100644 --- a/Robust/src/Runtime/bamboo/multicoregccompact.c +++ b/Robust/src/Runtime/bamboo/multicoregccompact.c @@ -307,7 +307,10 @@ void handleOneMemoryRequest(int core, unsigned int lowestblock) { //taken care of one block gcmovepending--; void *startaddr=blockptr+usedspace; - if(BAMBOO_CHECK_SEND_MODE()) { + if (core==STARTUPCORE) { + gctomove=true; + gcmovestartaddr=startaddr; + } else if(BAMBOO_CHECK_SEND_MODE()) { cache_msg_2_I(core,GCMOVESTART,startaddr); } else { send_msg_2_I(core,GCMOVESTART,startaddr); @@ -560,7 +563,7 @@ void master_compact() { // compact phase compact(); /* wait for all cores to finish compacting */ - + GC_PRINTF("master finished\n"); while(!gc_checkCoreStatus()) ; -- 2.34.1