0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-09 20:58:44 +00:00

Allocator fix: thread local kept pages counter must be thread local

This commit is contained in:
Maria Matejka 2023-02-27 19:12:29 +01:00
parent 0b7657a9dc
commit b8d0ba36e6

View 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)