Commit 6e4656cc authored by Ben Gamari's avatar Ben Gamari 🐢 Committed by Marge Bot

rts/nonmoving: Catch failure of createOSThread

parent 43623b09
......@@ -896,8 +896,10 @@ void nonmovingCollect(StgWeak **dead_weaks, StgTSO **resurrected_threads)
concurrent_coll_running = true;
nonmoving_write_barrier_enabled = true;
debugTrace(DEBUG_nonmoving_gc, "Starting concurrent mark thread");
createOSThread(&mark_thread, "non-moving mark thread",
nonmovingConcurrentMark, mark_queue);
if (createOSThread(&mark_thread, "non-moving mark thread",
nonmovingConcurrentMark, mark_queue) != 0) {
barf("nonmovingCollect: failed to spawn mark thread: %s", strerror(errno));
} else {
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