[project @ 1999-02-03 16:32:47 by simonm]
[ghc-hetmet.git] / ghc / rts / StoragePriv.h
index 24b7a84..f36e1bf 100644 (file)
@@ -1,5 +1,5 @@
 /* -----------------------------------------------------------------------------
- * $Id: StoragePriv.h,v 1.4 1999/01/18 15:21:40 simonm Exp $
+ * $Id: StoragePriv.h,v 1.7 1999/02/02 14:21:34 simonm Exp $
  *
  * Internal Storage Manger Interface
  *
@@ -71,6 +71,7 @@ typedef struct _generation {
   nat n_steps;                 /* number of steps */
   nat max_blocks;              /* max blocks in step 0 */
   StgMutClosure *mut_list;      /* mutable objects in this generation (not G0)*/
+  StgMutClosure *mut_once_list; /* objects that point to younger generations */
 
   /* temporary use during GC: */
   StgMutClosure *saved_mut_list;
@@ -106,6 +107,12 @@ extern nat nursery_blocks;
 extern nat alloc_blocks;
 extern nat alloc_blocks_lim;
 
+extern bdescr *allocNursery ( bdescr *last_bd, nat blocks );
+extern void resizeNursery ( nat blocks );
+
+extern lnat calcLive( void );
+extern lnat calcNeeded( void );
+
 static inline void
 dbl_link_onto(bdescr *bd, bdescr **list)
 {
@@ -125,6 +132,7 @@ dbl_link_onto(bdescr *bd, bdescr **list)
 
 #ifdef DEBUG
 extern void memInventory(void);
+extern void checkSanity(nat N);
 #endif
 
 #endif /* STORAGEPRIV_H */