mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-17 03:00:21 +02:00
We don't need a pin bit: we just need to mark pinned objects before evacuation starts. This way we can remove the stopping / marking race so that we can always mark while stopping.
39 lines
1.7 KiB
C
39 lines
1.7 KiB
C
#ifndef CONSERVATIVE_ROOTS_EMBEDDER_H
|
|
#define CONSERVATIVE_ROOTS_EMBEDDER_H
|
|
|
|
#include "gc-assert.h"
|
|
#include "conservative-roots-types.h"
|
|
|
|
static inline int gc_has_conservative_roots(void) {
|
|
return 1;
|
|
}
|
|
static inline int gc_has_conservative_intraheap_edges(void) {
|
|
// FIXME: Implement both ways.
|
|
return 0;
|
|
}
|
|
|
|
static inline void gc_trace_conservative_mutator_roots(struct gc_mutator_roots *roots,
|
|
void (*trace_ref)(struct gc_ref edge,
|
|
void *trace_data),
|
|
void *trace_data) {
|
|
}
|
|
|
|
static inline void gc_trace_precise_mutator_roots(struct gc_mutator_roots *roots,
|
|
void (*trace_edge)(struct gc_edge edge,
|
|
void *trace_data),
|
|
void *trace_data) {
|
|
}
|
|
|
|
static inline void gc_trace_conservative_heap_roots(struct gc_heap_roots *roots,
|
|
void (*trace_ref)(struct gc_ref ref,
|
|
void *trace_data),
|
|
void *trace_data) {
|
|
}
|
|
|
|
static inline void gc_trace_precise_heap_roots(struct gc_heap_roots *roots,
|
|
void (*trace_edge)(struct gc_edge edge,
|
|
void *trace_data),
|
|
void *trace_data) {
|
|
}
|
|
|
|
#endif // CONSERVATIVE_ROOTS_EMBEDDER_H
|