my changes
authorjzhou <jzhou>
Thu, 7 Jul 2011 00:23:09 +0000 (00:23 +0000)
committerjzhou <jzhou>
Thu, 7 Jul 2011 00:23:09 +0000 (00:23 +0000)
Robust/src/Runtime/bamboo/multicorecache.c
Robust/src/Runtime/bamboo/multicorecache.h
Robust/src/Runtime/bamboo/multicoremem.h

index df38728d1ac1708020ce79ba395ba717e12dee29..27710a3432400edc346f48ec5c0c7d1e989805a8 100644 (file)
@@ -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);
index 4c6fdc3640640f7ee1685934199b4aaf95701090..c1b00fc45d0ce70329c1bceaa6d7aa43a4a1b05b 100644 (file)
@@ -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(); \
     } \
   }
index 44611f2df52e098d69c646ed56bbe02d56316187..ed3ffd1ed386dcb618b2e81d14a295bd71c68caf 100644 (file)
@@ -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