in instead of the defaults.
*/
+#include "../rts/PosixSource.h"
#include "Rts.h"
#include "HsFFI.h"
// See #3408: the default idle GC time of 0.3s is too short on
// Windows where we receive console events once per second or so.
+#if __GLASGOW_HASKELL__ >= 703
+ RtsFlags.GcFlags.idleGCDelayTime = SecondsToTime(5);
+#else
RtsFlags.GcFlags.idleGCDelayTime = 5*1000;
+#endif
}
void
-StackOverflowHook (unsigned long stack_size) /* in bytes */
+StackOverflowHook (lnat stack_size) /* in bytes */
{
- fprintf(stderr, "GHC stack-space overflow: current limit is %ld bytes.\nUse the `-K<size>' option to increase it.\n", stack_size);
+ fprintf(stderr, "GHC stack-space overflow: current limit is %zu bytes.\nUse the `-K<size>' option to increase it.\n", (size_t)stack_size);
}