X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fgc.h;h=10c97a479949e1d3185b979f224d9896de07e4e4;hb=0bce9320787ec158000514620f3b7122642861b1;hp=8861fecab44246e9b77f03f7f7736a2bc94cde06;hpb=6cbe4d8ba6d7bc469d03a72514c789b1f3944878;p=sbcl.git diff --git a/src/runtime/gc.h b/src/runtime/gc.h index 8861fec..10c97a4 100644 --- a/src/runtime/gc.h +++ b/src/runtime/gc.h @@ -16,18 +16,28 @@ #ifndef _GC_H_ #define _GC_H_ +#include "sbcl.h" + +#define PAGE_BYTES BACKEND_PAGE_BYTES + +typedef signed long page_index_t; +typedef signed char generation_index_t; + extern void gc_init(void); +extern void gc_initialize_pointers(void); +extern void collect_garbage(generation_index_t last_gen); +extern void gc_init_tables(void); -/* Note: CMU CL had two different argument conventions for - * collect_garbage(..), depending on whether gencgc was in use. SBCL - * should have only one, which is automatic right now (20000814) since - * we only support gencgc, but should also be maintained if someone - * adds another GC, or ports one of the other CMU CL GCs like gengc. */ -extern void collect_garbage(unsigned last_gen); #include "os.h" extern void set_auto_gc_trigger(os_vm_size_t usage); extern void clear_auto_gc_trigger(void); -#endif _GC_H_ +#include "fixnump.h" + +extern boolean maybe_gc(os_context_t *context); + +extern unsigned long bytes_consed_between_gcs; + +#endif /* _GC_H_ */