Author: gnichols
Date: 2010-08-12 15:52:53 +0000 (Thu, 12 Aug 2010)
New Revision: 628
Modified:
trunk/tests/memory/threaded_memtest.c
Log:
581463 - memory test hangs on larger scale systems
Modified: trunk/tests/memory/threaded_memtest.c
===================================================================
--- trunk/tests/memory/threaded_memtest.c 2010-08-06 01:50:03 UTC (rev 627)
+++ trunk/tests/memory/threaded_memtest.c 2010-08-12 15:52:53 UTC (rev 628)
@@ -157,8 +157,10 @@
pthread_mutex_unlock(&ct_mutex);
if (parallel) {
/* let main() go as soon as the thread is created */
+ pthread_mutex_lock(&mmap_mutex);
mmap_done=1;
pthread_cond_signal(&mmap_cond);
+ pthread_mutex_unlock(&mmap_mutex);
}
on_cpu(thread_id % num_cpus);
Show replies by date