From: Maria Matejka Date: Mon, 27 Feb 2023 18:12:29 +0000 (+0100) Subject: Allocator fix: thread local kept pages counter must be thread local X-Git-Tag: v3.0-alpha1~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8d0ba36e6a64518ac078139c24a7a01002dce21;p=thirdparty%2Fbird.git Allocator fix: thread local kept pages counter must be thread local --- diff --git a/sysdep/unix/alloc.c b/sysdep/unix/alloc.c index 6c68a865d..8bd3770d7 100644 --- a/sysdep/unix/alloc.c +++ b/sysdep/unix/alloc.c @@ -73,7 +73,7 @@ static event page_cleanup_event = { .hook = page_cleanup, }; _Atomic int pages_kept = 0; _Atomic int pages_kept_locally = 0; -static int pages_kept_here = 0; +static _Thread_local int pages_kept_here = 0; static void * alloc_sys_page(void)