From 18d069d663e44bc5812952aa98c8c8dc61116649 Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Wed, 26 Jun 2024 23:21:32 +0200 Subject: [PATCH] Even on shutdown we should try to pass the freed memory to others --- sysdep/unix/alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysdep/unix/alloc.c b/sysdep/unix/alloc.c index 02960956..1cf41a5b 100644 --- a/sysdep/unix/alloc.c +++ b/sysdep/unix/alloc.c @@ -268,7 +268,7 @@ free_page(void *ptr) #ifdef HAVE_MMAP /* We primarily try to keep the pages locally. */ struct free_page *fp = ptr; - if (shutting_down || (pages_kept_here < KEEP_PAGES_MAX_LOCAL)) + if (pages_kept_here < KEEP_PAGES_MAX_LOCAL) { struct free_page *next = local_page_stack; atomic_store_explicit(&fp->next, next, memory_order_relaxed);