From: jzhou Date: Thu, 7 Oct 2010 00:14:43 +0000 (+0000) Subject: bug fix X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=3c9fc10a5e04018e351de048b0cd9df46822171b;p=IRC.git bug fix --- diff --git a/Robust/src/Runtime/bamboo/multicoreruntime.h b/Robust/src/Runtime/bamboo/multicoreruntime.h index 6ee47842..da4209c1 100644 --- a/Robust/src/Runtime/bamboo/multicoreruntime.h +++ b/Robust/src/Runtime/bamboo/multicoreruntime.h @@ -386,9 +386,9 @@ struct freeMemList { // to access volatile int * bamboo_smemtbl; volatile int bamboo_free_block; -int bamboo_reserved_smem; // reserved blocks on the top of the shared heap - // e.g. 20% of the heap and should not be allocated - // otherwise gc is invoked +unsigned int bamboo_reserved_smem; // reserved blocks on the top of the shared + // heap e.g. 20% of the heap and should not + // be allocated otherwise gc is invoked volatile INTPTR bamboo_smem_zero_top; #define BAMBOO_SMEM_ZERO_UNIT_SIZE (4 * 1024) // 4KB #else diff --git a/Robust/src/Runtime/bamboo/multicoretask.c b/Robust/src/Runtime/bamboo/multicoretask.c index 2d063603..495e2f10 100644 --- a/Robust/src/Runtime/bamboo/multicoretask.c +++ b/Robust/src/Runtime/bamboo/multicoretask.c @@ -608,13 +608,13 @@ void checkCoreStatus() { totalexetime = BAMBOO_GET_EXE_TIME() - bamboo_start_time; #else - BAMBOO_DEBUGPRINT(BAMBOO_GET_EXE_TIME() - bamboo_start_time); + BAMBOO_PRINT(BAMBOO_GET_EXE_TIME() - bamboo_start_time); //BAMBOO_DEBUGPRINT_REG(total_num_t6); // TODO for test #ifdef GC_FLUSH_DTLB - BAMBOO_DEBUGPRINT_REG(gc_num_flush_dtlb); + BAMBOO_PRINT_REG(gc_num_flush_dtlb); #endif #ifndef BAMBOO_MEMPROF - BAMBOO_DEBUGPRINT(0xbbbbbbbb); + BAMBOO_PRINT(0xbbbbbbbb); #endif #endif // profile mode, send msgs to other cores to request pouring