1.0.22.22: (SETF FIND-CLASSOID) to drop DEFTYPE lambda-lists and source-locations
[sbcl/tcr.git] / src / runtime / gc.h
bloba619175bd7fa210f37d669ae6058d476e1b8f0d7
1 /*
2 * garbage collection
3 */
5 /*
6 * This software is part of the SBCL system. See the README file for
7 * more information.
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.
16 #ifndef _GC_H_
17 #define _GC_H_
19 #include "sbcl.h"
21 #ifdef LISP_FEATURE_GENCGC
22 #define PAGE_BYTES GENCGC_PAGE_SIZE
23 #else
24 #define PAGE_BYTES BACKEND_PAGE_SIZE
25 #endif
27 typedef signed long page_index_t;
28 typedef signed char generation_index_t;
30 extern void gc_init(void);
31 extern void gc_initialize_pointers(void);
32 extern void collect_garbage(generation_index_t last_gen);
33 extern void gc_init_tables(void);
36 #include "os.h"
38 extern void set_auto_gc_trigger(os_vm_size_t usage);
39 extern void clear_auto_gc_trigger(void);
41 #include "fixnump.h"
43 #include "pseudo-atomic.h"
45 extern boolean maybe_gc(os_context_t *context);
47 extern unsigned long bytes_consed_between_gcs;
49 #endif /* _GC_H_ */