bump MAX_THUNK_SELECTOR_DEPTH from 8 to 16
authorSimon Marlow <simonmar@microsoft.com>
Mon, 3 Sep 2007 10:19:12 +0000 (10:19 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Mon, 3 Sep 2007 10:19:12 +0000 (10:19 +0000)
this "fixes" #1038, in that the example runs in constant space, but
it's really only working around the problem.  I have a better patch,
attached to ticket #1038, but I'm wary about tinkering with this
notorious bug farm so close to the release, so I'll push it after
6.8.1.

rts/sm/Evac.c

index d533e5d..687ac10 100644 (file)
@@ -24,7 +24,7 @@
 /* Used to avoid long recursion due to selector thunks
  */
 lnat thunk_selector_depth = 0;
-#define MAX_THUNK_SELECTOR_DEPTH 8
+#define MAX_THUNK_SELECTOR_DEPTH 16
 
 static StgClosure * eval_thunk_selector ( nat field, StgSelector * p );