bug fix
authorjzhou <jzhou>
Thu, 7 Oct 2010 00:14:43 +0000 (00:14 +0000)
committerjzhou <jzhou>
Thu, 7 Oct 2010 00:14:43 +0000 (00:14 +0000)
Robust/src/Runtime/bamboo/multicoreruntime.h
Robust/src/Runtime/bamboo/multicoretask.c

index 6ee4784210b4bbc19c062b34f4e6fc52ffed991e..da4209c1ddc135e82ee76591c47073a90c19f87d 100644 (file)
@@ -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
index 2d0636031baa5cca28acac8291f45e2209547927..495e2f10b0a138ecbfff00c4d6b507de821af59a 100644 (file)
@@ -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