--- a/src/Pure/ML-Systems/mlworks.ML Tue Oct 20 17:52:52 1998 +0200
+++ b/src/Pure/ML-Systems/mlworks.ML Tue Oct 20 18:04:23 1998 +0200
@@ -19,9 +19,9 @@
(* MLWorks parameters *)
val _ =
- (MLWorks.Internal.Runtime.Event.stack_overflow_handler
- (fn () => MLWorks.Internal.Runtime.Memory.max_stack_blocks :=
- ! MLWorks.Internal.Runtime.Memory.max_stack_blocks + 20);
+ (MLWorks.Internal.Runtime.Event.stack_overflow_handler (fn () =>
+ let val max_stack = MLWorks.Internal.Runtime.Memory.max_stack_blocks
+ in max_stack := (! max_stack * 3) div 2 + 5 end);
MLWorks.Internal.Runtime.Memory.gc_message_level := 10;
(*Is this of any use at all?*)
Shell.Options.set (Shell.Options.ValuePrinter.showExnDetails, true));