X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fincludes%2FConstants.h;h=ab73b9b2c0d5f9f7e768cf1f95461cbe343703f0;hb=b250f6185627671d8b3e80004671663fe88ac80f;hp=579705e3c681bbe509bbc533df0a136495f7f89c;hpb=b61f70ce5ff947642c96b1ad980351691bb1e07a;p=ghc-hetmet.git diff --git a/ghc/includes/Constants.h b/ghc/includes/Constants.h index 579705e..ab73b9b 100644 --- a/ghc/includes/Constants.h +++ b/ghc/includes/Constants.h @@ -1,5 +1,4 @@ /* ---------------------------------------------------------------------------- - * $Id: Constants.h,v 1.27 2004/11/18 09:56:19 tharris Exp $ * * (c) The GHC Team, 1998-2002 * @@ -21,12 +20,12 @@ /* ----------------------------------------------------------------------------- Minimum closure sizes - Here we define the minimum size for updatable closures. This must be at - least 2, to allow for cons cells and linked indirections. All updates + Here we define the minimum size for updatable closures. All updates will be performed on closures of this size. For non-updatable closures the minimum size is 1 to allow for a forwarding pointer. - Linked indirections are UPD_OLDGEN things: see Closures.h + When we used to keep the mutable list threaded through closures on + the heap, MIN_UPD_SIZE used to be 2. Now it's 1. o MIN_UPD_SIZE doesn't apply to stack closures, static closures or non-updateable objects like PAPs or CONSTRs @@ -42,7 +41,7 @@ o EVACUATED -------------------------------------------------------------------------- */ -#define MIN_UPD_SIZE 2 +#define MIN_UPD_SIZE 1 #define MIN_NONUPD_SIZE 1 /* ----------------------------------------------------------------------------- @@ -196,7 +195,7 @@ #define LDV_LAST_MASK 0x00007FFF #define LDV_STATE_CREATE 0x00000000 #define LDV_STATE_USE 0x40000000 -#endif // SIZEOF_VOID_P +#endif /* SIZEOF_VOID_P */ /* ----------------------------------------------------------------------------- TSO related constants @@ -267,4 +266,10 @@ #error RESERVED_STACK_WORDS may be wrong! #endif +/* ----------------------------------------------------------------------------- + How often our context-switch timer ticks + -------------------------------------------------------------------------- */ + +#define TICK_FREQUENCY 50 /* ticks per second */ + #endif /* CONSTANTS_H */