From: jzhou Date: Mon, 4 Oct 2010 18:10:44 +0000 (+0000) Subject: Config the size of the shared heap for TSP benchmark X-Git-Url: http://plrg.eecs.uci.edu/git/?p=IRC.git;a=commitdiff_plain;h=f15ca1fca323ad247bc7095781a65834f2a8c482 Config the size of the shared heap for TSP benchmark --- diff --git a/Robust/src/Runtime/bamboo/multicoreruntime.h b/Robust/src/Runtime/bamboo/multicoreruntime.h index fb38a0f6..6ee47842 100644 --- a/Robust/src/Runtime/bamboo/multicoreruntime.h +++ b/Robust/src/Runtime/bamboo/multicoreruntime.h @@ -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 +#ifdef GC_LARGESHAREDHEAP +#define BAMBOO_NUM_BLOCKS ((GC_BAMBOO_NUMCORES)*(2+24)) +#else #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)