1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-29 22:40:34 +02:00

Fix BDW ephemeron implementation

* src/gc-ephemeron.c: Use key null-ness as dead ephemeron indicator;
works better with BDW-GC's disappearing link.
* src/bdw.c (gc_heap_ephemeron_trace_epoch): Fix to actually define the
epoch.  Whoops!
This commit is contained in:
Andy Wingo 2023-10-20 11:43:40 +02:00
parent cfc8c8a9b8
commit 9176aa650f
2 changed files with 6 additions and 8 deletions

View file

@ -181,7 +181,7 @@ struct gc_ephemeron* gc_allocate_ephemeron(struct gc_mutator *mut) {
}
unsigned gc_heap_ephemeron_trace_epoch(struct gc_heap *heap) {
return 0;
return GC_get_gc_no();
}
void gc_ephemeron_init(struct gc_mutator *mut, struct gc_ephemeron *ephemeron,