in isomalloc pup, when during restarting, grab the isomalloc slots on all processors.
authorGengbin Zheng <gzheng@illinois.edu>
Fri, 26 Oct 2007 05:44:55 +0000 (05:44 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Fri, 26 Oct 2007 05:44:55 +0000 (05:44 +0000)
src/conv-core/isomalloc.c

index aa54f290c91cf664751497b5fc03701cfff9afb4..351ed6f83935cbd012e3483361b1bf027798f61a 100644 (file)
@@ -18,7 +18,7 @@ generalized by Orion Lawlor November 2001.
 #include "converse.h"
 #include "memory-isomalloc.h"
 
-#define CMK_THREADS_DEBUG 0 
+#define CMK_THREADS_DEBUG 0
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -841,7 +841,7 @@ void CmiIsomallocPup(pup_er p,void **blockPtrPtr)
        
        if (pup_isUnpacking(p)) 
        { /*Must allocate a new block in its old location*/
-               if (pup_isUserlevel(p))
+               if (pup_isUserlevel(p) || pup_isRestarting(p))
                        /*Checkpoint: must grab old slots (even remote!)*/
                        all_slotOP(&grabOP,s,n);
                blk=map_slots(s,n);