]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Allocator fix: thread local kept pages counter must be thread local
authorMaria Matejka <mq@ucw.cz>
Mon, 27 Feb 2023 18:12:29 +0000 (19:12 +0100)
committerMaria Matejka <mq@ucw.cz>
Tue, 4 Apr 2023 15:00:58 +0000 (17:00 +0200)
sysdep/unix/alloc.c

index 6c68a865db37186ce7015e6f59a29cde2c593927..8bd3770d75c5e66f1b38ca1b19d5189f9c7f7900 100644 (file)
@@ -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)