X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fgc.h;h=ce1b92549938b003400b34377ad92d65fd6db42c;hb=f2db6743b1fadeea9e72cb583d857851c87efcd4;hp=b3f5e043406dec6f2cf5154fae9a6d854e973766;hpb=cea4896b2482b7b2b429c1631d774b4cfbc0efba;p=sbcl.git diff --git a/src/runtime/gc.h b/src/runtime/gc.h index b3f5e04..ce1b925 100644 --- a/src/runtime/gc.h +++ b/src/runtime/gc.h @@ -16,22 +16,32 @@ #ifndef _GC_H_ #define _GC_H_ -extern void gc_init(void); +#include "sbcl.h" + +#ifdef LISP_FEATURE_GENCGC +#define PAGE_BYTES GENCGC_PAGE_BYTES +#else +#define PAGE_BYTES BACKEND_PAGE_BYTES +#endif + +typedef signed long page_index_t; +typedef signed char generation_index_t; -/* 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); +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); -#ifndef ibmrt #include "os.h" extern void set_auto_gc_trigger(os_vm_size_t usage); extern void clear_auto_gc_trigger(void); -#endif ibmrt +#include "fixnump.h" + +extern boolean maybe_gc(os_context_t *context); + +extern unsigned long bytes_consed_between_gcs; -#endif _GC_H_ +#endif /* _GC_H_ */