Revert "Fix regression on i386 due to get/setAllocationCounter change"
authorBen Gamari <ben@smart-cactus.org>
Thu, 18 Jan 2018 05:50:05 +0000 (00:50 -0500)
committerBen Gamari <ben@smart-cactus.org>
Thu, 18 Jan 2018 05:50:05 +0000 (00:50 -0500)
This reverts commit a770226e03f09b767fdb4ce826162a5c0f29ec29.

rts/PrimOps.cmm

index 42001d1..1caa0c3 100644 (file)
@@ -2499,7 +2499,7 @@ stg_traceMarkerzh ( W_ msg )
 stg_getThreadAllocationCounterzh ()
 {
     // Account for the allocation in the current block
-    I64 offset;
+    W_ offset;
     offset = Hp - bdescr_start(CurrentNursery);
     return (StgTSO_alloc_limit(CurrentTSO) - offset);
 }
@@ -2510,7 +2510,7 @@ stg_setThreadAllocationCounterzh ( I64 counter )
     // getThreadAllocationCounter#, so we have to offset any existing
     // allocation here.  See also openNursery/closeNursery in
     // compiler/codeGen/StgCmmForeign.hs.
-    I64 offset;
+    W_ offset;
     offset = Hp - bdescr_start(CurrentNursery);
     StgTSO_alloc_limit(CurrentTSO) = counter + offset;
     return ();