get the reg liveness right in the putMVar# heap check
authorSimon Marlow <marlowsd@gmail.com>
Wed, 7 Apr 2010 09:27:24 +0000 (09:27 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Wed, 7 Apr 2010 09:27:24 +0000 (09:27 +0000)
rts/PrimOps.cmm

index 892ef68..d09a856 100644 (file)
@@ -1326,7 +1326,7 @@ stg_putMVarzh
     if (StgMVar_value(mvar) != stg_END_TSO_QUEUE_closure) {
 
         // see Note [mvar-heap-check] above
-        HP_CHK_GEN_TICKY(SIZEOF_StgMVarTSOQueue, R1_PTR|R2_PTR, stg_putMVarzh);
+        HP_CHK_GEN_TICKY(SIZEOF_StgMVarTSOQueue, R1_PTR & R2_PTR, stg_putMVarzh);
 
         q = Hp - SIZEOF_StgMVarTSOQueue + WDS(1);