From 36128e6d7ff7ad7573e197d867c5d55a13ad10ed Mon Sep 17 00:00:00 2001 From: Akilan Date: Mon, 11 Aug 2025 12:55:16 +0100 Subject: [PATCH] test whole program --- benchmarks/allocator/allocator_shared_object_file.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/benchmarks/allocator/allocator_shared_object_file.c b/benchmarks/allocator/allocator_shared_object_file.c index 05bb1eb..29e56f6 100644 --- a/benchmarks/allocator/allocator_shared_object_file.c +++ b/benchmarks/allocator/allocator_shared_object_file.c @@ -137,10 +137,10 @@ static char *heap_start; static char *heap; static size_t HEAP_SIZE = 1024 * 1024 * 1024; -void *ptr; -int MallocCounter = 0; +static void *ptr; +static int MallocCounter = 0; -size_t sizeUsed; +static size_t sizeUsed; // INITAlloc(void) { @@ -198,7 +198,7 @@ pagesizes(size_t ps[MAXPAGESIZES]) } -void __attribute__ ((constructor)) INITREGULARALLOC(void) { +__attribute__ ((constructor)) void INITREGULARALLOC(void) { size_t sz; // Pre Allocate 400 MB sz = 1073741824;