Commit 5cd7cb62 authored by simonmar's avatar simonmar
Browse files

[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.
parent 2efbfc25
/* -----------------------------------------------------------------------------
* $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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment