From f15ca1fca323ad247bc7095781a65834f2a8c482 Mon Sep 17 00:00:00 2001 From: jzhou Date: Mon, 4 Oct 2010 18:10:44 +0000 Subject: [PATCH] Config the size of the shared heap for TSP benchmark --- Robust/src/Runtime/bamboo/multicoreruntime.h | 4 ++++ 1 file changed, 4 insertions(+) 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) -- 2.34.1