fixed wrong usage of converse message
authorGengbin Zheng <gzheng@illinois.edu>
Sat, 20 Mar 2010 14:20:59 +0000 (09:20 -0500)
committerGitosis server account <gitosis@charm.cs.uiuc.edu>
Sat, 20 Mar 2010 14:20:59 +0000 (09:20 -0500)
via git-CVS emulator

tests/converse/commbench/smputil.c

index 573518ce2bff81b4321c9c3ca8da4f6ecd7e2735..baa9f31f1e1ae33618079bd3320a44070bd8374d 100755 (executable)
@@ -68,11 +68,12 @@ static void memAllocHandler(EmptyMsg *msg){
        CmiNodeBarrier();
        
        if(CmiMyPe()==0){
-               CmiPrintf("[smputil] Estimated Malloc/Free Overhead (w contention): %le seconds\n",overhead);
-               CmiSetHandler(&msg, CpvAccess(barrIdx));
-         CmiSyncBroadcastAll(sizeof(EmptyMsg), &msg);
-       }else{
-               CmiFree(msg);   
+         CmiPrintf("[smputil] Estimated Malloc/Free Overhead (w contention): %le seconds\n",overhead);
+         CmiSetHandler(msg, CpvAccess(barrIdx));
+         CmiSyncBroadcastAll(sizeof(EmptyMsg), msg);
+       }
+       else {
+         CmiFree(msg);
        }
 }