Changes to maintain the older scheme for isomalloc
[charm.git] / src / conv-core / global-elfcopy.C
index 09b51754323acbf495e041acf45a4fe9c003be8d..5d745aafea792d6b350c5c586189f724a4aee157 100644 (file)
@@ -252,7 +252,11 @@ void CtgGlobalStruct::pup(PUP::er &p) {
   p | seg_size;
   /* global data segment need to be isomalloc pupped */
   if (CmiMemoryIs(CMI_MEMORY_IS_ISOMALLOC))
+#if CMK_USE_MEMPOOL_ISOMALLOC
     pup_bytes(&p, &data_seg, sizeof(void*));
+#else
+    CmiIsomallocPup(&p, &data_seg);
+#endif
   else {
     if (p.isUnpacking()) allocate(seg_size, NULL);
     p((char *)data_seg, seg_size);