2 These routines customise the error messages
3 for various bits of the RTS. They are linked
4 in instead of the defaults.
7 /* For GHC 4.08, we are relying on the fact that RtsFlags has
8 * compatible layout with the current version, because we're
9 * #including the current version of RtsFlags.h below. 4.08 didn't
10 * ship with its own RtsFlags.h, unfortunately. For later GHC
11 * versions, we #include the correct RtsFlags.h.
13 #if __GLASGOW_HASKELL__ < 502
14 #include "../includes/Rts.h"
15 #include "../includes/RtsFlags.h"
32 RtsFlags.GcFlags.heapSizeSuggestion = 6*1024*1024 / BLOCK_SIZE;
33 RtsFlags.GcFlags.maxStkSize = 8*1024*1024 / sizeof(W_);
34 #if __GLASGOW_HASKELL__ >= 411
35 /* GHC < 4.11 didn't have these */
36 RtsFlags.GcFlags.giveStats = COLLECT_GC_STATS;
37 RtsFlags.GcFlags.statsFile = stderr;
42 StackOverflowHook (unsigned long stack_size) /* in bytes */
44 fprintf(stderr, "GHC stack-space overflow: current limit is %ld bytes.\nUse the `-K<size>' option to increase it.\n", stack_size);