remove sampling for policy1&2, tmp solution
[IRC.git] / Robust / src / Runtime / bamboo / multicoregcprofile.h
index 899c7b70f8ffa7900969ed201c5c19e8a157e50e..f88c7ecf36bbb61b3b9d9417f3dd373aec92959d 100644 (file)
@@ -85,6 +85,7 @@ INLINE static void gc_profileEnd_master(void) {
     gcInfo->time[gcInfo->index++] = gc_num_liveobj;
     gcInfo->time[gcInfo->index++] = gc_num_forwardobj;
     gc_infoIndex++;
+    if(gcInfo->index != GC_PROFILE_NUM_FIELD) BAMBOO_EXIT();
     gc_size_allocatedobj = 0; // reset the counter of allocated obj
     if(gc_infoIndex == GCINFOLENGTH) {
       gc_infoOverflow = true;