1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-07 04:30:18 +02:00

Remove BDW usage from gc.c

* libguile/atomics-internal.h (scm_atomic_subtract_size): New helper.
* libguile/gc.c (scm_gc_register_allocation): Rework to use atomics.
(scm_gc_event_listener_restarting_mutators): Reset the
off_heap_allocation_countdown to the heap size after GC.
(scm_gc_disable, scm_gc_enable): Remove these.  Unclear what they mean
exactly!  Perhaps if there is a meaning we can look at it later.
(scm_i_gc):
(scm_storage_prehistory):
(scm_init_gc): Update.
This commit is contained in:
Andy Wingo 2025-05-15 15:53:34 +02:00
parent d560676572
commit f71775f396
3 changed files with 31 additions and 62 deletions

View file

@ -125,7 +125,7 @@ scm_trace_loader_conservative_roots (void (*trace_range)(uintptr_t lo,
struct gc_heap *heap,
void *trace_data),
struct gc_heap *heap,
void *trace_data)
void *trace_data)
{
for (size_t i = 0; i < roots_count; i++)
trace_range(roots[i].lo, roots[i].hi, 0, heap, trace_data);