[project @ 2000-12-19 12:51:58 by simonmar]
authorsimonmar <unknown>
Tue, 19 Dec 2000 12:51:58 +0000 (12:51 +0000)
committersimonmar <unknown>
Tue, 19 Dec 2000 12:51:58 +0000 (12:51 +0000)
Remove setHeapSize, we'll do this in the compiler proper now.

ghc/rts/Storage.c
ghc/rts/Storage.h

index 51e1fb0..b6be1e8 100644 (file)
@@ -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<size> 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.
    -------------------------------------------------------------------------- */
 
index 1e5e3cf..4ba2731 100644 (file)
@@ -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