From 5cd7cb62dcbdabac9f728208362e1a32d1b82c39 Mon Sep 17 00:00:00 2001 From: simonmar Date: Fri, 2 Mar 2001 14:26:40 +0000 Subject: [PATCH] [project @ 2001-03-02 14:26:40 by simonmar] Another good bug: the stack check in the AP_UPD entry code was wrong. This one is a definite source of crashes. To be merged into the 4.08 branch. --- ghc/rts/Updates.hc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ghc/rts/Updates.hc b/ghc/rts/Updates.hc index 39c1c28..dac564e 100644 --- a/ghc/rts/Updates.hc +++ b/ghc/rts/Updates.hc @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: Updates.hc,v 1.31 2000/12/04 12:31:22 simonmar Exp $ + * $Id: Updates.hc,v 1.32 2001/03/02 14:26:40 simonmar Exp $ * * (c) The GHC Team, 1998-1999 * @@ -430,7 +430,7 @@ STGFUN(stg_AP_UPD_entry) /* * Check for stack overflow. */ - STK_CHK(Words+sizeofW(StgUpdateFrame),stg_AP_UPD_entry,R2.p,1,); + STK_CHK_GEN(Words+sizeofW(StgUpdateFrame), R1_PTR, stg_AP_UPD_entry, ); PUSH_UPD_FRAME(R1.p, 0); Sp -= sizeofW(StgUpdateFrame) + Words; -- 1.7.10.4