1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-11 16:20:19 +02:00
guile/gc.h
Andy Wingo a4e1f55f37 Implement generational collection
Not really battle-tested but it seems to work.  Need to implement
heuristics for when to do generational vs full-heap GC.
2022-08-02 15:37:02 +02:00

30 lines
626 B
C

#ifndef GC_H_
#define GC_H_
#include "gc-types.h"
#if defined(GC_BDW)
#include "bdw.h"
#elif defined(GC_SEMI)
#include "semi.h"
#elif defined(GC_WHIPPET)
#define GC_PARALLEL_TRACE 0
#define GC_GENERATIONAL 0
#include "whippet.h"
#elif defined(GC_PARALLEL_WHIPPET)
#define GC_PARALLEL_TRACE 1
#define GC_GENERATIONAL 0
#include "whippet.h"
#elif defined(GC_GENERATIONAL_WHIPPET)
#define GC_PARALLEL_TRACE 0
#define GC_GENERATIONAL 1
#include "whippet.h"
#elif defined(GC_PARALLEL_GENERATIONAL_WHIPPET)
#define GC_PARALLEL_TRACE 1
#define GC_GENERATIONAL 1
#include "whippet.h"
#else
#error unknown gc
#endif
#endif // GC_H_