Skip to content
Snippets Groups Projects
Commit eb38812e authored by Ben Gamari's avatar Ben Gamari Committed by Marge Bot
Browse files

rts: Fix data race in threadPaused

This only affects an assertion in the debug RTS and only needs relaxed
ordering.
parent 515eb33d
No related branches found
No related tags found
No related merge requests found
......@@ -304,7 +304,7 @@ threadPaused(Capability *cap, StgTSO *tso)
// the value to the frame underneath:
tso->stackobj->sp = (StgPtr)frame + sizeofW(StgUpdateFrame) - 2;
tso->stackobj->sp[1] = (StgWord)bh;
ASSERT(bh->header.info != &stg_TSO_info);
ASSERT(RELAXED_LOAD(&bh->header.info) != &stg_TSO_info);
tso->stackobj->sp[0] = (W_)&stg_enter_info;
// And continue with threadPaused; there might be
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment