From 014805a3c0e6e1ad06b70fc16c6ada56c9df9feb Mon Sep 17 00:00:00 2001 From: simonmar Date: Fri, 10 Aug 2001 10:57:23 +0000 Subject: [PATCH] [project @ 2001-08-10 10:57:23 by simonmar] Fix another place where the maxHeapSize is set to the heapSizeSuggestion, now that maxHeapSize == 0 indicates "unbounded". --- ghc/compiler/parser/hschooks.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ghc/compiler/parser/hschooks.c b/ghc/compiler/parser/hschooks.c index 82dd838..7d94a7a 100644 --- a/ghc/compiler/parser/hschooks.c +++ b/ghc/compiler/parser/hschooks.c @@ -42,8 +42,8 @@ setHeapSize( HsInt size ) { #if __GLASGOW_HASKELL__ >= 408 RtsFlags.GcFlags.heapSizeSuggestion = size / BLOCK_SIZE; - if (RtsFlags.GcFlags.heapSizeSuggestion > - RtsFlags.GcFlags.maxHeapSize) { + if (RtsFlags.GcFlags.maxHeapSize != 0 && + RtsFlags.GcFlags.heapSizeSuggestion > RtsFlags.GcFlags.maxHeapSize) { RtsFlags.GcFlags.maxHeapSize = RtsFlags.GcFlags.heapSizeSuggestion; } #endif -- 1.7.10.4