minor changes in CkVec to fix the memory bug
authorGengbin Zheng <gzheng@illinois.edu>
Wed, 8 Jul 2009 16:05:59 +0000 (16:05 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Wed, 8 Jul 2009 16:05:59 +0000 (16:05 +0000)
examples/charm++/X10/Makefile
examples/charm++/X10/X10_lib.C

index 1e5533ba4ecb4ad2d8975642e7256e7bab233f77..e6fa0af8e3d0bfce28becdee26c51120fa1bc506 100644 (file)
@@ -1,4 +1,4 @@
-CHARMC=$(HOME)/src/charm/bin/charmc -g
+CHARMC=../../../bin/charmc $(OPTS)
 
 all : X10_lib.o X10_test2
 
index 410573898858424a974bd41268dc7fe8bc7bcb98..8ec3a1492dfeaabde6e8c25cc491589d14094d07 100644 (file)
@@ -56,7 +56,8 @@ void asyncCall(void *ffl, int place, int whichFunction, void *packedParams){
   CkFutureID ftHandle = CkCreateAttachedFuture((void*)msg);
   FinishFutureList->push_back(ftHandle);
   //  CkPrintf("MainThread: Created Future with handle %d\n", ftHandle);
-  (*FinishFutureList)[FinishFutureList->length()]=ftHandle;
+  //(*FinishFutureList)[FinishFutureList->length()]=ftHandle;
+  FinishFutureList->push_back(ftHandle);
   placesProxy[place].startAsync(whichFunction,ftHandle,CkMyPe());
   // CkPrintf("MainThread: Created Async call with handle %d\n", ftHandle);
 }