mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-27 13:30:31 +02:00
Merge remote-tracking branch 'whippet/main' into HEAD
This commit is contained in:
commit
d4fd1f3486
7 changed files with 81 additions and 16 deletions
|
@ -1090,6 +1090,14 @@ void gc_ephemeron_init(struct gc_mutator *mut, struct gc_ephemeron *ephemeron,
|
|||
gc_ephemeron_init_internal(mutator_heap(mut), ephemeron, key, value);
|
||||
}
|
||||
|
||||
struct gc_ref
|
||||
gc_ephemeron_swap_value(struct gc_mutator *mut, struct gc_ephemeron *e,
|
||||
struct gc_ref ref) {
|
||||
gc_write_barrier(mut, gc_ref_from_heap_object(e), gc_ephemeron_size(),
|
||||
gc_ephemeron_value_edge(e), ref);
|
||||
return gc_ephemeron_swap_value_internal(e, ref);
|
||||
}
|
||||
|
||||
struct gc_pending_ephemerons *gc_heap_pending_ephemerons(struct gc_heap *heap) {
|
||||
#if GC_GENERATIONAL
|
||||
if (is_minor_collection(heap))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue