mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-27 21:40:34 +02:00
Whippet captures stack when stopping mutators
This is part of work to enable conservative GC.
This commit is contained in:
parent
d2bde8319f
commit
deed415a06
4 changed files with 60 additions and 57 deletions
|
@ -2,9 +2,16 @@
|
|||
#define PRECISE_ROOTS_EMBEDDER_H
|
||||
|
||||
#include "gc-edge.h"
|
||||
#include "gc-embedder-api.h"
|
||||
#include "precise-roots-types.h"
|
||||
|
||||
static inline int gc_has_conservative_roots(void) {
|
||||
static inline int gc_has_mutator_conservative_roots(void) {
|
||||
return 0;
|
||||
}
|
||||
static inline int gc_mutator_conservative_roots_may_be_interior(void) {
|
||||
return 0;
|
||||
}
|
||||
static inline int gc_has_global_conservative_roots(void) {
|
||||
return 0;
|
||||
}
|
||||
static inline int gc_has_conservative_intraheap_edges(void) {
|
||||
|
@ -19,12 +26,6 @@ static inline void visit_roots(struct handle *roots,
|
|||
trace_edge(gc_edge(&h->v), trace_data);
|
||||
}
|
||||
|
||||
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),
|
||||
|
@ -33,12 +34,6 @@ static inline void gc_trace_precise_mutator_roots(struct gc_mutator_roots *roots
|
|||
visit_roots(roots->roots, trace_edge, 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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue