From: simonmar Date: Fri, 10 Aug 2001 10:57:23 +0000 (+0000) Subject: [project @ 2001-08-10 10:57:23 by simonmar] X-Git-Tag: Approximately_9120_patches~1286 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=014805a3c0e6e1ad06b70fc16c6ada56c9df9feb;p=ghc-hetmet.git [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". --- 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