From ce056add3e6b85520c3b25e51e0e6b4d0b5767a3 Mon Sep 17 00:00:00 2001 From: bdemsky Date: Wed, 22 Sep 2010 02:29:13 +0000 Subject: [PATCH] fix bugs --- Robust/src/Runtime/bamboo/multicoregarbage.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Robust/src/Runtime/bamboo/multicoregarbage.c b/Robust/src/Runtime/bamboo/multicoregarbage.c index 7b5dffe1..381083a3 100644 --- a/Robust/src/Runtime/bamboo/multicoregarbage.c +++ b/Robust/src/Runtime/bamboo/multicoregarbage.c @@ -3020,6 +3020,7 @@ int cacheAdapt_policy_dominate(){ continue; } totalfreq = (totalfreq*GC_CACHE_ADAPT_DOMINATE_THRESHOLD)/100/BAMBOO_PAGE_SIZE; + hotfreq/=BAMBOO_PAGE_SIZE; if(hotfreq < totalfreq) { // use hfh policy.cache_mode = BAMBOO_CACHE_MODE_HASH; @@ -3130,6 +3131,7 @@ int cacheAdapt_policy_overload(){ } totalfreq/=BAMBOO_PAGE_SIZE; + hotfreq/=BAMBOO_PAGE_SIZE; // locally cache the page in the hotest core // NOTE: (x,y) should be changed to (x+1, y+1)!!! policy.cache_mode = BAMBOO_CACHE_MODE_COORDS; @@ -3240,6 +3242,7 @@ int cacheAdapt_policy_crowd(){ continue; } totalfreq/=BAMBOO_PAGE_SIZE; + hotfreq/=BAMBOO_PAGE_SIZE; // locally cache the page in the hotest core // NOTE: (x,y) should be changed to (x+1, y+1)!!! policy.cache_mode = BAMBOO_CACHE_MODE_COORDS; -- 2.34.1