Commit a592f6b4 authored by Simon Marlow's avatar Simon Marlow
Browse files

need to release the SM lock around heapCensus() to avoid deadlock with

+RTS -hT and -threaded.
parent fde773b6
......@@ -668,7 +668,9 @@ GarbageCollect (rtsBool force_major_gc,
// behind.
if (do_heap_census) {
debugTrace(DEBUG_sched, "performing heap census");
RELEASE_SM_LOCK;
heapCensus();
ACQUIRE_SM_LOCK;
}
// send exceptions to any threads which were about to die
......
Markdown is supported
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