From b80823fe828a0687d4baae3c34c737d46fbf439c Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Fri, 9 Sep 2022 20:57:59 +0200 Subject: Memory pages allocator is now a global simple lockless structure --- lib/resource.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/resource.h') diff --git a/lib/resource.h b/lib/resource.h index 5ad011ec..56a746bb 100644 --- a/lib/resource.h +++ b/lib/resource.h @@ -122,6 +122,7 @@ void buffer_realloc(void **buf, unsigned *size, unsigned need, unsigned item_siz /* Allocator of whole pages; for use in slabs and other high-level allocators. */ #define PAGE_HEAD(x) ((void *) (((uintptr_t) (x)) & ~(page_size-1))) extern long page_size; +extern _Atomic int pages_kept; void *alloc_page(void); void free_page(void *); -- cgit v1.2.3