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:
parent
0ffa6688aa
commit
72fbb05ee8
1 changed files with 4 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue