mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-13 09:10:26 +02:00
Rework pinning, prepare for conservative tracing
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.
This commit is contained in:
parent
2199d5f48d
commit
8a51117763
4 changed files with 200 additions and 89 deletions
|
@ -12,19 +12,30 @@ struct gc_mutator_roots;
|
|||
struct gc_heap_roots;
|
||||
struct gc_atomic_forward;
|
||||
|
||||
GC_EMBEDDER_API inline int gc_has_conservative_roots(void);
|
||||
GC_EMBEDDER_API inline int gc_has_conservative_intraheap_edges(void);
|
||||
|
||||
GC_EMBEDDER_API inline void gc_trace_object(struct gc_ref ref,
|
||||
void (*trace_edge)(struct gc_edge edge,
|
||||
void *trace_data),
|
||||
void *trace_data,
|
||||
size_t *size) GC_ALWAYS_INLINE;
|
||||
GC_EMBEDDER_API inline void gc_trace_mutator_roots(struct gc_mutator_roots *roots,
|
||||
GC_EMBEDDER_API 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);
|
||||
GC_EMBEDDER_API 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);
|
||||
GC_EMBEDDER_API inline void gc_trace_heap_roots(struct gc_heap_roots *roots,
|
||||
void (*trace_edge)(struct gc_edge edge,
|
||||
void *trace_data),
|
||||
void *trace_data);
|
||||
GC_EMBEDDER_API 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);
|
||||
GC_EMBEDDER_API 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);
|
||||
|
||||
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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue