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:
parent
0b7657a9dc
commit
b8d0ba36e6
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user