Consistently use malloc_mutex_prefork().

Consistently use malloc_mutex_prefork() instead of malloc_mutex_lock()
in all prefork functions.
This commit is contained in:
Jason Evans
2013-10-21 14:59:10 -07:00
parent 6556e28be1
commit f1c3da8b02
3 changed files with 5 additions and 5 deletions

View File

@@ -1245,10 +1245,10 @@ prof_prefork(void)
if (opt_prof) {
unsigned i;
malloc_mutex_lock(&bt2ctx_mtx);
malloc_mutex_lock(&prof_dump_seq_mtx);
malloc_mutex_prefork(&bt2ctx_mtx);
malloc_mutex_prefork(&prof_dump_seq_mtx);
for (i = 0; i < PROF_NCTX_LOCKS; i++)
malloc_mutex_lock(&ctx_locks[i]);
malloc_mutex_prefork(&ctx_locks[i]);
}
}