1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-27 13:30:31 +02:00

Whoops, fix refactor-induced locking problem

This commit is contained in:
Andy Wingo 2024-09-16 11:45:01 +02:00
parent cf570d0206
commit dcfdc547f6

View file

@ -90,6 +90,7 @@ gc_adaptive_heap_sizer_on_gc(struct gc_adaptive_heap_sizer *sizer,
static void
gc_adaptive_heap_sizer_background_task(void *data) {
struct gc_adaptive_heap_sizer *sizer = data;
pthread_mutex_lock(&sizer->lock);
uint64_t bytes_allocated =
sizer->get_allocation_counter(sizer->callback_data);
uint64_t heartbeat = gc_platform_monotonic_nanoseconds();