From de5e7b1c16dd1d49fe54eb6e110b60abef9c7974 Mon Sep 17 00:00:00 2001 From: d-netto Date: Sun, 9 Jun 2024 14:03:37 -0300 Subject: [PATCH] fix stale docstring in gc_sweep_page --- src/gc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gc.c b/src/gc.c index ffa22603e7537..661a313b230a8 100644 --- a/src/gc.c +++ b/src/gc.c @@ -1432,7 +1432,8 @@ STATIC_INLINE void gc_dump_page_utilization_data(void) JL_NOTSAFEPOINT int64_t buffered_pages = 0; -// Returns pointer to terminal pointer of list rooted at *pfl. +// Walks over a page, reconstruting the free lists if the page contains at least one live object. If not, +// queues up the page for later decommit (i.e. through `madvise` on Unix). static void gc_sweep_page(gc_page_profiler_serializer_t *s, jl_gc_pool_t *p, jl_gc_page_stack_t *allocd, jl_gc_page_stack_t *buffered, jl_gc_pagemeta_t *pg, int osize) JL_NOTSAFEPOINT {