Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] View of /sml/trunk/src/runtime/include/gc.h
ViewVC logotype

View of /sml/trunk/src/runtime/include/gc.h

Parent Directory Parent Directory | Revision Log Revision Log

Revision 986 - (download) (as text) (annotate)
Wed Nov 21 21:03:17 2001 UTC (18 years, 7 months ago) by blume
File size: 838 byte(s)
Release 110.37 -- see HISTORY
/* gc.h
 * COPYRIGHT (c) 1992 AT&T Bell Laboratories
 * The external interface to the garbage collector.

#ifndef _GC_
#define _GC_

#ifndef _ML_BASE_
#include "ml-base.h"

/* typedef struct heap heap_t; */	/* from ml-base.h */

extern void InitHeap (ml_state_t *msp, bool_t isBoot, heap_params_t *params);
extern void InvokeGC (ml_state_t *msp, int level);
extern void InvokeGCWithRoots (ml_state_t *msp, int level, ...);
extern bool_t NeedGC (ml_state_t *msp, Word_t nbytes);

extern int GetObjGen (ml_val_t obj);
extern ml_val_t RecordConcat (ml_state_t *msp, ml_val_t r1, ml_val_t r2);

char *BO_AddrToCodeObjTag (Word_t pc);

extern status_t HeapMon_Init (heap_t *heap);
#define HeapMon_Init(A)

#ifdef GC_STATS
extern void ClearGCStats (heap_t *heap);

#endif /* !_GC_ */

ViewVC Help
Powered by ViewVC 1.0.0