mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-07 04:30:18 +02:00
Add embedder API to provide heap and mutator conservative roots
This commit is contained in:
parent
2f13187f62
commit
08e6633f93
5 changed files with 93 additions and 4 deletions
|
@ -50,6 +50,25 @@ GC_EMBEDDER_API inline void gc_trace_heap_roots(struct gc_heap_roots *roots,
|
|||
struct gc_heap *heap,
|
||||
void *trace_data);
|
||||
|
||||
GC_EMBEDDER_API inline void
|
||||
gc_trace_mutator_conservative_roots(struct gc_mutator_roots *roots,
|
||||
void (*trace_range)(uintptr_t start,
|
||||
uintptr_t end,
|
||||
int possibly_interior,
|
||||
struct gc_heap *heap,
|
||||
void *data),
|
||||
struct gc_heap *heap,
|
||||
void *data);
|
||||
GC_EMBEDDER_API inline void
|
||||
gc_trace_heap_conservative_roots(struct gc_heap_roots *roots,
|
||||
void (*trace_range)(uintptr_t start,
|
||||
uintptr_t end,
|
||||
int possibly_interior,
|
||||
struct gc_heap *heap,
|
||||
void *data),
|
||||
struct gc_heap *heap,
|
||||
void *data);
|
||||
|
||||
GC_EMBEDDER_API inline uintptr_t gc_object_forwarded_nonatomic(struct gc_ref ref);
|
||||
GC_EMBEDDER_API inline void gc_object_forward_nonatomic(struct gc_ref ref,
|
||||
struct gc_ref new_ref);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue