From: bdemsky Date: Thu, 14 Jul 2011 10:32:01 +0000 (+0000) Subject: changes X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3bfd9a66225cd413bdbcb35116a6a681efa7bf3c;p=IRC.git changes --- diff --git a/Robust/src/Runtime/bamboo/multicoregccompact.c b/Robust/src/Runtime/bamboo/multicoregccompact.c index df5c7c94..b3969011 100644 --- a/Robust/src/Runtime/bamboo/multicoregccompact.c +++ b/Robust/src/Runtime/bamboo/multicoregccompact.c @@ -414,7 +414,7 @@ unsigned int compactblocks(struct moveHelper * orig, struct moveHelper * to) { void *origbound=orig->pagebound; void *tobound=to->pagebound; //set to the first line so we don't need conditions - void *lastflush=(&gcmappingtbl[OBJMAPPINGINDEX(origptr)])&~(BAMBOO_CACHE_LINE_MASK); + void *lastflush=(void *)(((unsigned INTPTR)&gcmappingtbl[OBJMAPPINGINDEX(origptr)])&~(BAMBOO_CACHE_LINE_MASK)); #else void *origbound=orig->bound; void *tobound=to->bound; @@ -483,7 +483,7 @@ unsigned int compactblocks(struct moveHelper * orig, struct moveHelper * to) { *mapptr=toptr; #ifdef GC_CACHE_ADAPT - void *maskmapptr=mapptr&~(BAMBOO_CACHE_LINE_MASK); + void *maskmapptr=(void *)(((unsigned INTPTR)mapptr)&~(BAMBOO_CACHE_LINE_MASK)); if (lastflush!=maskmapptr) { BAMBOO_CACHE_FLUSH_LINE(lastflush);