1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-19 19:20:23 +02:00

Add conservative heap tracing (not just roots)

Also accelerate mark_space_live_object_granules.
This commit is contained in:
Andy Wingo 2022-10-26 10:37:55 +02:00
parent 053dbf0b61
commit 910b62af8f
13 changed files with 221 additions and 94 deletions

14
bdw.c
View file

@ -8,12 +8,20 @@
#include "bdw-attrs.h"
#if GC_PRECISE
#if GC_PRECISE_ROOTS
#error bdw-gc is a conservative collector
#else
#include "conservative-roots-embedder.h"
#endif
#if !GC_CONSERVATIVE_ROOTS
#error bdw-gc is a conservative collector
#endif
#if !GC_CONSERVATIVE_TRACE
#error bdw-gc is a conservative collector
#endif
#include "conservative-roots-embedder.h"
// When pthreads are used, let `libgc' know about it and redirect
// allocation calls such as `GC_MALLOC ()' to (contention-free, faster)
// thread-local allocation.