From: jzhou Date: Tue, 17 May 2011 00:11:46 +0000 (+0000) Subject: Fix bug in multicore gc X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=53831f58d57f0078bc725cdab0606ae4916de605;p=IRC.git Fix bug in multicore gc --- diff --git a/Robust/src/Runtime/bamboo/multicoregarbage.c b/Robust/src/Runtime/bamboo/multicoregarbage.c index 88f1936e..bf3c14f3 100644 --- a/Robust/src/Runtime/bamboo/multicoregarbage.c +++ b/Robust/src/Runtime/bamboo/multicoregarbage.c @@ -821,7 +821,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; @@ -854,7 +854,7 @@ void gc_master(struct garbagelist * stackptr) { master_finish(); GC_PRINTF("gc finished \n"); - tprintf("finish GC ! %d \n",gcflag); + //tprintf("finish GC ! %d \n",gcflag); } void pregccheck() { diff --git a/Robust/src/Runtime/bamboo/multicoregcprofile.h b/Robust/src/Runtime/bamboo/multicoregcprofile.h index 10d52ba4..b2cbdf9d 100644 --- a/Robust/src/Runtime/bamboo/multicoregcprofile.h +++ b/Robust/src/Runtime/bamboo/multicoregcprofile.h @@ -98,9 +98,7 @@ INLINE static void gc_profileEnd(void) { // record lobj info #define GCPROFILE_RECORD_LOBJ() \ { \ - if(gc_profile_flag) { \ gc_num_lobj++; \ - } \ } // record lobj space info #define GCPROFILE_RECORD_LOBJSPACE() \ @@ -123,16 +121,12 @@ INLINE static void gc_profileEnd(void) { // record forward obj info #define GCPROFILE_RECORD_FORWARD_OBJ() \ { \ - if(gc_profile_flag) { \ gc_num_forwardobj++; \ - } \ } // record live obj info #define GCPROFILE_RECORD_LIVE_OBJ() \ { \ - if(gc_profile_flag) { \ gc_num_liveobj++; \ - } \ } #define GCPROFILE_START() \ { \