[mpich-commits] [mpich] MPICH primary repository branch, master, updated. v3.2b1-90-g51512b7

Service Account noreply at mpich.org
Tue Apr 21 18:41:00 CDT 2015


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "MPICH primary repository".

The branch, master has been updated
       via  51512b7d5428d74c5d8ddae691b993596d570e7f (commit)
      from  fa10eeaa26b2188bbc63bf978a3ac8e4857e12df (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.mpich.org/mpich.git/commitdiff/51512b7d5428d74c5d8ddae691b993596d570e7f

commit 51512b7d5428d74c5d8ddae691b993596d570e7f
Author: Min Si <msi at il.is.s.u-tokyo.ac.jp>
Date:   Tue Apr 21 18:38:15 2015 -0500

    Revert "A workaround for FreeBSD pthread mallc/free bug."
    
    This reverts commit 8f6b3cbb1f3a8a6f2202dbcff32fd76d7de7aa05.

diff --git a/test/mpi/threads/pt2pt/multisend4.c b/test/mpi/threads/pt2pt/multisend4.c
index 9b2f07b..041e6af 100644
--- a/test/mpi/threads/pt2pt/multisend4.c
+++ b/test/mpi/threads/pt2pt/multisend4.c
@@ -44,9 +44,9 @@ MTEST_THREAD_RETURN_TYPE run_test_sendrecv(void *arg)
 	fprintf( stderr, "Panic wsize = %d nthreads = %d\n",
 		 wsize, nthreads );
 
-    buf = (int *) malloc(2 * MAX_CNT * sizeof(int));
-
     for (cnt=1; cnt < MAX_CNT; cnt = 2*cnt) {
+	buf = (int *)malloc( 2*cnt * sizeof(int) );
+
 	/* Wait for all senders to be ready */
 	MTest_thread_barrier(nthreads);
 
@@ -72,11 +72,10 @@ MTEST_THREAD_RETURN_TYPE run_test_sendrecv(void *arg)
 	t = MPI_Wtime() - t;
 	/* can't free the buffers until the requests are completed */
 	MTest_thread_barrier(nthreads);
+	free( buf );
 	if (thread_num == 1)
 	    MTestPrintfMsg( 1, "buf size %d: time %f\n", cnt, t / MAX_LOOP );
     }
-
-    free(buf);
     return (MTEST_THREAD_RETURN_TYPE)NULL;
 }
 

-----------------------------------------------------------------------

Summary of changes:
 test/mpi/threads/pt2pt/multisend4.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
MPICH primary repository


More information about the commits mailing list