changes
authorbdemsky <bdemsky>
Thu, 14 Jul 2011 10:32:01 +0000 (10:32 +0000)
committerbdemsky <bdemsky>
Thu, 14 Jul 2011 10:32:01 +0000 (10:32 +0000)
Robust/src/Runtime/bamboo/multicoregccompact.c

index df5c7c9420bedf08ad5691b7e5605e6f67cb5dc4..b3969011a69bcbec04b7749545e467c6b4ae70ab 100644 (file)
@@ -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);