1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-05 03:30:24 +02:00

Fix Guile's whippet embedding for conservative roots tracing

* libguile/whippet-embedder.h (gc_extern_space_visit): Don't crash if
conservative tracing is enabled: these are already part of the root set.
This commit is contained in:
Andy Wingo 2025-05-16 22:38:45 +02:00
parent 0ffa6688aa
commit 72fbb05ee8

View file

@ -65,7 +65,11 @@ gc_is_valid_conservative_ref_displacement (uintptr_t displacement) {
static inline int gc_extern_space_visit (struct gc_extern_space *space,
struct gc_edge edge,
struct gc_ref ref) {
#if GC_CONSERVATIVE_TRACE
return 0;
#else
GC_CRASH ();
#endif
}
static inline void gc_extern_space_start_gc (struct gc_extern_space *space,
int is_minor_gc) {