]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Even on shutdown we should try to pass the freed memory to others
authorMaria Matejka <mq@ucw.cz>
Wed, 26 Jun 2024 21:21:32 +0000 (23:21 +0200)
committerMaria Matejka <mq@ucw.cz>
Thu, 27 Jun 2024 06:22:15 +0000 (08:22 +0200)
sysdep/unix/alloc.c

index 029609561ab86fcc3357f4d94b7d66f5b147e7b2..1cf41a5bb78e2f8919b9f6047d565bdf210feb5c 100644 (file)
@@ -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);