mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-11 16:20:19 +02:00
Refactor embedder interface for conservative GC
Now users don't have to #ifdef on conservative vs precise tracing; it's just a generic embedder concern.
This commit is contained in:
parent
910b62af8f
commit
c614c2e40b
14 changed files with 109 additions and 198 deletions
|
@ -1,7 +1,7 @@
|
|||
#ifndef GC_EMBEDDER_API_H
|
||||
#define GC_EMBEDDER_API_H
|
||||
|
||||
#include "gc-conservative-ref.h"
|
||||
#include "gc-config.h"
|
||||
#include "gc-edge.h"
|
||||
#include "gc-forwarding.h"
|
||||
|
||||
|
@ -14,14 +14,7 @@ struct gc_heap_roots;
|
|||
struct gc_atomic_forward;
|
||||
struct gc_heap;
|
||||
|
||||
GC_EMBEDDER_API inline int gc_has_mutator_conservative_roots(void);
|
||||
GC_EMBEDDER_API inline int gc_has_global_conservative_roots(void);
|
||||
GC_EMBEDDER_API inline int gc_has_conservative_intraheap_edges(void);
|
||||
GC_EMBEDDER_API inline int gc_mutator_conservative_roots_may_be_interior(void);
|
||||
|
||||
GC_EMBEDDER_API inline int gc_is_valid_conservative_ref_displacement(uintptr_t displacement);
|
||||
GC_EMBEDDER_API inline int gc_conservative_ref_might_be_a_heap_object(struct gc_conservative_ref,
|
||||
int possibly_interior);
|
||||
|
||||
GC_EMBEDDER_API inline void gc_trace_object(struct gc_ref ref,
|
||||
void (*visit)(struct gc_edge edge,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue