From: jzhou Date: Thu, 7 Jul 2011 00:23:09 +0000 (+0000) Subject: my changes X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=12ade5db19bb94d769cce347db015c9c85295015;p=IRC.git my changes --- diff --git a/Robust/src/Runtime/bamboo/multicorecache.c b/Robust/src/Runtime/bamboo/multicorecache.c index df38728d..27710a34 100644 --- a/Robust/src/Runtime/bamboo/multicorecache.c +++ b/Robust/src/Runtime/bamboo/multicorecache.c @@ -357,11 +357,11 @@ void cacheAdapt_policy_dominate(int coren){ totalfreq=totalfreq>>GC_CACHE_ADAPT_DOMINATE_THRESHOLD; if((unsigned int)hotfreq < (unsigned int)totalfreq) { // use hfh - //policy.cache_mode = BAMBOO_CACHE_MODE_HASH; - unsigned int block = 0; + policy.cache_mode = BAMBOO_CACHE_MODE_HASH; + /*unsigned int block = 0; BLOCKINDEX(block, (void *) page_sva); unsigned int coren = gc_block2core[block%(NUMCORES4GC*2)]; - CACHEADAPT_POLICY_SET_HOST_CORE(policy, coren); + CACHEADAPT_POLICY_SET_HOST_CORE(policy, coren);*/ } else { // locally cache the page in the hottest core CACHEADAPT_POLICY_SET_HOST_CORE(policy, hottestcore); diff --git a/Robust/src/Runtime/bamboo/multicorecache.h b/Robust/src/Runtime/bamboo/multicorecache.h index 4c6fdc36..c1b00fc4 100644 --- a/Robust/src/Runtime/bamboo/multicorecache.h +++ b/Robust/src/Runtime/bamboo/multicorecache.h @@ -116,7 +116,7 @@ void gc_output_cache_sampling_r(); #ifdef MGC_SPEC #define CACHEADAPT_OUTPUT_CACHE_POLICY() \ { \ - if(1) { \ + if(gc_profile_flag) { \ bamboo_output_cache_policy(); \ } \ } diff --git a/Robust/src/Runtime/bamboo/multicoremem.h b/Robust/src/Runtime/bamboo/multicoremem.h index 44611f2d..ed3ffd1e 100644 --- a/Robust/src/Runtime/bamboo/multicoremem.h +++ b/Robust/src/Runtime/bamboo/multicoremem.h @@ -7,14 +7,14 @@ // data structures for shared memory allocation #ifdef TILERA_BME #ifdef MGC -#define BAMBOO_BASE_VA 0x600000 +#define BAMBOO_BASE_VA 0x1000000 #else #define BAMBOO_BASE_VA 0xd000000 #endif #elif defined TILERA_ZLINUX #ifdef MULTICORE_GC #ifdef MGC -#define BAMBOO_BASE_VA 0x600000 +#define BAMBOO_BASE_VA 0x1000000 #else #define BAMBOO_BASE_VA 0xd000000 #endif