diff options
Diffstat (limited to 'rts/PrimOps.cmm')
-rw-r--r-- | rts/PrimOps.cmm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/rts/PrimOps.cmm b/rts/PrimOps.cmm index 2f7f12df84..38845f1631 100644 --- a/rts/PrimOps.cmm +++ b/rts/PrimOps.cmm @@ -2782,7 +2782,9 @@ INFO_TABLE_RET(stg_noDuplicate, RET_SMALL, W_ info_ptr) stg_noDuplicatezh /* no arg list: explicit stack layout */ { // With a single capability there's no chance of work duplication. - if (CInt[n_capabilities] == 1 :: CInt) { + CInt n_caps; + n_caps = %relaxed CInt[n_capabilities]; + if (n_caps == 1 :: CInt) { jump %ENTRY_CODE(Sp(0)) []; } |