summaryrefslogtreecommitdiff
path: root/sysdep/unix
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2023-02-27 19:12:29 +0100
committerMaria Matejka <mq@ucw.cz>2023-04-04 17:00:58 +0200
commitb8d0ba36e6a64518ac078139c24a7a01002dce21 (patch)
tree67b770bbb6a7d94c547f3cfa2face4c60b565a01 /sysdep/unix
parent0b7657a9dc449fc19f6c06a99e9b86ffad37570e (diff)
Allocator fix: thread local kept pages counter must be thread local
Diffstat (limited to 'sysdep/unix')
-rw-r--r--sysdep/unix/alloc.c2
1 files changed, 1 insertions, 1 deletions
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)