From b8d0ba36e6a64518ac078139c24a7a01002dce21 Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Mon, 27 Feb 2023 19:12:29 +0100 Subject: Allocator fix: thread local kept pages counter must be thread local --- 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 6c68a865..8bd3770d 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) -- cgit v1.2.3