Config the size of the shared heap for TSP benchmark
authorjzhou <jzhou>
Mon, 4 Oct 2010 18:10:44 +0000 (18:10 +0000)
committerjzhou <jzhou>
Mon, 4 Oct 2010 18:10:44 +0000 (18:10 +0000)
Robust/src/Runtime/bamboo/multicoreruntime.h

index fb38a0f6a9c8e889157b4f3e957d96028cc3e330..6ee4784210b4bbc19c062b34f4e6fc52ffed991e 100644 (file)
@@ -302,7 +302,11 @@ struct Queue * totransobjqueue; // queue to hold objs to be transferred
 #define BAMBOO_SHARED_MEM_SIZE ((BAMBOO_SMEM_SIZE) *(BAMBOO_NUM_BLOCKS))
 
 #elif defined GC_CACHE_ADAPT
 #define BAMBOO_SHARED_MEM_SIZE ((BAMBOO_SMEM_SIZE) *(BAMBOO_NUM_BLOCKS))
 
 #elif defined GC_CACHE_ADAPT
+#ifdef GC_LARGESHAREDHEAP
+#define BAMBOO_NUM_BLOCKS ((GC_BAMBOO_NUMCORES)*(2+24))
+#else
 #define BAMBOO_NUM_BLOCKS ((GC_BAMBOO_NUMCORES)*(2+14))
 #define BAMBOO_NUM_BLOCKS ((GC_BAMBOO_NUMCORES)*(2+14))
+#endif
 #define BAMBOO_PAGE_SIZE (64 * 1024) // 64K
 #ifdef GC_LARGEPAGESIZE
 #define BAMBOO_PAGE_SIZE (4 * 64 * 1024)
 #define BAMBOO_PAGE_SIZE (64 * 1024) // 64K
 #ifdef GC_LARGEPAGESIZE
 #define BAMBOO_PAGE_SIZE (4 * 64 * 1024)