summaryrefslogtreecommitdiff
path: root/rts/PrimOps.cmm
diff options
context:
space:
mode:
Diffstat (limited to 'rts/PrimOps.cmm')
-rw-r--r--rts/PrimOps.cmm6
1 files changed, 3 insertions, 3 deletions
diff --git a/rts/PrimOps.cmm b/rts/PrimOps.cmm
index 26c4cfe7b4..2211dce391 100644
--- a/rts/PrimOps.cmm
+++ b/rts/PrimOps.cmm
@@ -1924,7 +1924,7 @@ loop:
// actually perform the takeMVar
W_ stack;
stack = StgTSO_stackobj(tso);
- if ((TO_W_(StgStack_dirty(stack)) & STACK_DIRTY) == 0) {
+ if (IS_STACK_CLEAN(stack)) {
ccall dirty_STACK(MyCapability() "ptr", stack "ptr");
}
PerformTake(stack, val);
@@ -2014,7 +2014,7 @@ loop:
// actually perform the takeMVar
W_ stack;
stack = StgTSO_stackobj(tso);
- if ((TO_W_(StgStack_dirty(stack)) & STACK_DIRTY) == 0) {
+ if (IS_STACK_CLEAN(stack)) {
ccall dirty_STACK(MyCapability() "ptr", stack "ptr");
}
PerformTake(stack, val);
@@ -2295,7 +2295,7 @@ loop:
// actually perform the takeMVar
W_ stack;
stack = StgTSO_stackobj(tso);
- if (TO_W_(StgStack_dirty(stack)) == 0) {
+ if (IS_STACK_CLEAN(stack)) {
ccall dirty_STACK(MyCapability() "ptr", stack "ptr");
}
PerformTake(stack, val);