From: simonmar Date: Mon, 28 Apr 2003 09:57:12 +0000 (+0000) Subject: [project @ 2003-04-28 09:57:12 by simonmar] X-Git-Tag: Approx_11550_changesets_converted~939 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=df95d4f3f96a73287087f71c98cb80e1343a11a4;p=ghc-hetmet.git [project @ 2003-04-28 09:57:12 by simonmar] Comments to note the relationship between the RET_DYN stack frame size and RESERVED_STACK_WORDS. --- diff --git a/ghc/includes/StgMacros.h b/ghc/includes/StgMacros.h index faa8e07..8c319d7 100644 --- a/ghc/includes/StgMacros.h +++ b/ghc/includes/StgMacros.h @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: StgMacros.h,v 1.51 2003/04/22 16:25:08 simonmar Exp $ + * $Id: StgMacros.h,v 1.52 2003/04/28 09:57:12 simonmar Exp $ * * (c) The GHC Team, 1998-1999 * @@ -246,10 +246,14 @@ typedef StgWord StgWordArray[]; we assume that the size of a double is always 2 pointers (wasting a word when it is only one pointer, but avoiding lots of #ifdefs). + NOTE: if you change the layout of RET_DYN stack frames, then you + might also need to adjust the value of RESERVED_STACK_WORDS in + Constants.h. -------------------------------------------------------------------------- */ // VERY MAGIC CONSTANTS! -// must agree with code in HeapStackCheck.c, stg_gen_chk +// must agree with code in HeapStackCheck.c, stg_gen_chk, and +// RESERVED_STACK_WORDS in Constants.h. // #define RET_DYN_BITMAP_SIZE 8 #define RET_DYN_NONPTR_REGS_SIZE 10