remove sampling for policy1&2, tmp solution
[IRC.git] / Robust / src / Runtime / bamboo / multicoregarbage.c
index 4518fed89c10057533a9a19906e331d67af6d4b0..0c53142f565004fb2b6850365ce77a6b5e00af88 100644 (file)
@@ -507,7 +507,7 @@ void pregccheck() {
 }
 
 void pregcprocessing() {
-#if defined(GC_CACHE_ADAPT)&&defined(GC_CACHE_SAMPLING)
+#if defined(GC_CACHE_ADAPT)&&defined(GC_CACHE_SAMPLING)&&defined(GC_CACHE_ADAPT_POLICY4)
   // disable the timer interrupt
   bamboo_mask_timer_intr();
   // get the sampling data 
@@ -516,7 +516,7 @@ void pregcprocessing() {
 }
 
 void postgcprocessing() {
-#if defined(GC_CACHE_ADAPT)&&defined(GC_CACHE_SAMPLING)
+#if defined(GC_CACHE_ADAPT)&&defined(GC_CACHE_SAMPLING)&&defined(GC_CACHE_ADAPT_POLICY4)
   // enable the timer interrupt
   bamboo_tile_timer_set_next_event(GC_TILE_TIMER_EVENT_SETTING); 
   bamboo_unmask_timer_intr();