From: simonmar Date: Tue, 19 Dec 2000 12:51:58 +0000 (+0000) Subject: [project @ 2000-12-19 12:51:58 by simonmar] X-Git-Tag: Approximately_9120_patches~3059 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=c887767d3ffa9d5ce292d38b0c091b6a23d66957;p=ghc-hetmet.git [project @ 2000-12-19 12:51:58 by simonmar] Remove setHeapSize, we'll do this in the compiler proper now. --- diff --git a/ghc/rts/Storage.c b/ghc/rts/Storage.c index 51e1fb0..b6be1e8 100644 --- a/ghc/rts/Storage.c +++ b/ghc/rts/Storage.c @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: Storage.c,v 1.30 2000/12/11 12:37:00 simonmar Exp $ + * $Id: Storage.c,v 1.31 2000/12/19 12:51:58 simonmar Exp $ * * (c) The GHC Team, 1998-1999 * @@ -197,21 +197,6 @@ exitStorage (void) } /* ----------------------------------------------------------------------------- - Setting the heap size. This function is callable from Haskell (GHC - uses it to implement the -H option). - -------------------------------------------------------------------------- */ - -void -setHeapSize( HsInt size ) -{ - RtsFlags.GcFlags.heapSizeSuggestion = size / BLOCK_SIZE; - if (RtsFlags.GcFlags.heapSizeSuggestion > - RtsFlags.GcFlags.maxHeapSize) { - RtsFlags.GcFlags.maxHeapSize = RtsFlags.GcFlags.heapSizeSuggestion; - } -} - -/* ----------------------------------------------------------------------------- CAF management. -------------------------------------------------------------------------- */ diff --git a/ghc/rts/Storage.h b/ghc/rts/Storage.h index 1e5e3cf..4ba2731 100644 --- a/ghc/rts/Storage.h +++ b/ghc/rts/Storage.h @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: Storage.h,v 1.19 2000/12/11 12:37:00 simonmar Exp $ + * $Id: Storage.h,v 1.20 2000/12/19 12:51:58 simonmar Exp $ * * (c) The GHC Team, 1998-1999 * @@ -22,12 +22,6 @@ extern void initStorage(void); extern void exitStorage(void); /* ----------------------------------------------------------------------------- - Setting the heap size. - ------------------------------------------------------------------------- */ - -extern void setHeapSize( HsInt size ); - -/* ----------------------------------------------------------------------------- Generic allocation StgPtr allocate(int n) Allocates a chunk of contiguous store