bug fixes
authorbdemsky <bdemsky>
Thu, 30 Jun 2011 22:37:45 +0000 (22:37 +0000)
committerbdemsky <bdemsky>
Thu, 30 Jun 2011 22:37:45 +0000 (22:37 +0000)
Robust/src/Runtime/bamboo/multicoremem.c

index d0bfbb0cefaaf391db720eff801c6cbe2bfd33bc..693adb5b4d293094aa40c20549d2b83f0812ffb7 100644 (file)
@@ -10,7 +10,7 @@
 // Only allocate local mem chunks to each core.
 // If a core has used up its local shared memory, start gc.
 void * localmalloc_I(int coren,
-                     unsigned int isize,
+                     unsigned int memcheck,
                      int * allocsize) {
   for(block_t localblocknum=0;localblocknum<GCNUMLOCALBLOCK;localblocknum++) {
     block_t searchblock=BLOCKINDEX2(coren, localblocknum);
@@ -46,10 +46,6 @@ void * fixedmalloc_I(int coren,
 
   //failed try neighbors...in a round robin fashion
   
-  int minblockindex=allocationinfo.lowestfreeblock/NUMCORES4GC;
-  unsigned INTPTR threshold=(desiredmem<MINMEMORYCHUNKSIZE)? desiredmem: MINMEMORYCHUNKSIZE;
-  unsigned INTPTR memcheck=requiredmem>threshold?requiredmem:threshold;
-  
   for(block_t lblock=0;lblock<MAXNEIGHBORALLOC;lblock++) {  
     for(int i=0;i<NUM_CORES2TEST;i++) {
       int neighborcore=core2test[corenum][i];