summaryrefslogtreecommitdiff
path: root/libguile/whippet-embedder.h
diff options
context:
space:
mode:
Diffstat (limited to 'libguile/whippet-embedder.h')
-rw-r--r--libguile/whippet-embedder.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/libguile/whippet-embedder.h b/libguile/whippet-embedder.h
index aa82eb4f1..82e177936 100644
--- a/libguile/whippet-embedder.h
+++ b/libguile/whippet-embedder.h
@@ -109,6 +109,31 @@ static inline void gc_trace_heap_roots (struct gc_heap_roots *roots,
void *trace_data) {
}
+static inline void
+gc_trace_mutator_conservative_roots (struct gc_mutator_roots *roots,
+ void (*trace_range) (uintptr_t lo,
+ uintptr_t hi,
+ int possibly_interior,
+ struct gc_heap *heap,
+ void *trace_data),
+ struct gc_heap *heap,
+ void *trace_data) {
+ /* FIXME: thread stack? Currently traced via the precise
+ gc_trace_mutator_roots. */
+}
+
+static inline void
+gc_trace_heap_conservative_roots (struct gc_heap_roots *roots,
+ void (*trace_range) (uintptr_t lo,
+ uintptr_t hi,
+ int possibly_interior,
+ struct gc_heap *heap,
+ void *trace_data),
+ struct gc_heap *heap,
+ void *trace_data) {
+ scm_trace_loader_conservative_roots(trace_range, heap, trace_data);
+}
+
static inline SCM scm_from_gc_ref (struct gc_ref ref) {
return SCM_PACK (gc_ref_value (ref));
}