Mesh Streamer: Deleting msg after reduction is still causing a segfault,
authorLukasz Wesolowski <wesolwsk@illinois.edu>
Thu, 10 Nov 2011 23:47:31 +0000 (17:47 -0600)
committerLukasz Wesolowski <wesolwsk@illinois.edu>
Thu, 10 Nov 2011 23:47:31 +0000 (17:47 -0600)
so I am commenting the line out for now. Also, since caching the location
information leads to a slowdown on BG/P, I am commenting out the define
which makes it used by default.

src/libs/ck-libs/MeshStreamer/MeshStreamer.h

index 0ea84af2bd9295be900cfb1cb62a6a6d423b07d5..d2c2c6159ef588693cc5101e1d7f6c1a6f9b8224 100644 (file)
@@ -18,7 +18,7 @@ class MeshLocation {
   MeshStreamerMessageType msgType;
 };
 
-#define HASH_LOCATIONS
+//#define HASH_LOCATIONS
 
 #ifdef HASH_LOCATIONS
 #include <map>
@@ -414,7 +414,7 @@ void MeshStreamer<dtype>::finish(CkReductionMsg *msg) {
     userCallback_ = CkCallback();      // nullify the current callback
   }
 
-  delete msg; 
+  //  delete msg; 
 }