Skip to content
Commit 2541e1b0 authored by Jason Evans's avatar Jason Evans
Browse files

Add a missing mutex unlock in malloc_init_hard().

If multiple threads race to initialize malloc, the loser(s) busy-wait
until initialization is complete.  Add a missing mutex lock so that the
loser(s) properly release the initialization mutex.  Under some
race conditions, this flaw could have caused one or more threads to
become permanently blocked.

Reported by Terrell Magee.
parent b43b7750
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment