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

SCM Repository

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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 250 - (view) (download) (as text)

1 : monnier 249 /* gc.h
2 :     *
3 :     * COPYRIGHT (c) 1992 AT&T Bell Laboratories
4 :     *
5 :     * The external interface to the garbage collector.
6 :     *
7 :     */
8 :    
9 :     #ifndef _GC_
10 :     #define _GC_
11 :    
12 :     #ifndef _ML_BASE_
13 :     #include "ml-base.h"
14 :     #endif
15 :    
16 :     /* typedef struct heap heap_t; */ /* from ml-base.h */
17 :    
18 :     extern void InitHeap (ml_state_t *msp, bool_t isBoot, heap_params_t *params);
19 :     extern void InvokeGC (ml_state_t *msp, int level);
20 :     extern void InvokeGCWithRoots (ml_state_t *msp, int level, ...);
21 :     extern bool_t NeedGC (ml_state_t *msp, Word_t nbytes);
22 :    
23 :     extern int GetObjGen (ml_val_t obj);
24 :     extern ml_val_t RecordConcat (ml_state_t *msp, ml_val_t r1, ml_val_t r2);
25 :    
26 :     char *BO_AddrToCodeObjTag (Word_t pc, char *buf, int bufSz);
27 :    
28 :     #ifdef HEAP_MONITOR
29 :     extern status_t HeapMon_Init (heap_t *heap);
30 :     #else
31 :     #define HeapMon_Init(A)
32 :     #endif
33 :    
34 :     #ifdef GC_STATS
35 :     extern void ClearGCStats (heap_t *heap);
36 :     #endif
37 :    
38 :     #endif /* !_GC_ */

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0