Initial revision
[sbcl.git] / src / runtime / gc.h
1 /*
2  * garbage collection
3  */
4
5 /*
6  * This software is part of the SBCL system. See the README file for
7  * more information.
8  *
9  * This software is derived from the CMU CL system, which was
10  * written at Carnegie Mellon University and released into the
11  * public domain. The software is in the public domain and is
12  * provided with absolutely no warranty. See the COPYING and CREDITS
13  * files for more information.
14  */
15
16 /*
17  * $Header$
18  */
19
20 #ifndef _GC_H_
21 #define _GC_H_
22
23 extern void gc_init(void);
24
25 /* Note: CMU CL had two different argument conventions for
26  * collect_garbage(..), depending on whether gencgc was in use. SBCL
27  * should have only one, which is automatic right now (20000814) since
28  * we only support gencgc, but should also be maintained if someone
29  * adds another GC, or ports one of the other CMU CL GCs like gengc. */
30 extern void collect_garbage(unsigned last_gen);
31
32 #ifndef ibmrt
33
34 #include "os.h"
35
36 extern void set_auto_gc_trigger(os_vm_size_t usage);
37 extern void clear_auto_gc_trigger(void);
38
39 #endif ibmrt
40
41 #endif _GC_H_