diff --git a/benchmarks/allocator/allocator_shared_object_file.c b/benchmarks/allocator/allocator_shared_object_file.c index d4951c6..05bb1eb 100644 --- a/benchmarks/allocator/allocator_shared_object_file.c +++ b/benchmarks/allocator/allocator_shared_object_file.c @@ -198,7 +198,7 @@ pagesizes(size_t ps[MAXPAGESIZES]) } -INITREGULARALLOC(void) { +void __attribute__ ((constructor)) INITREGULARALLOC(void) { size_t sz; // Pre Allocate 400 MB sz = 1073741824; @@ -259,10 +259,10 @@ int notrun = 0; void* malloc(size_t sz) { // If malloc is called for the first time then allocate huge page - if (notrun == 0) { - INITREGULARALLOC(); - notrun = 1; - } +// if (notrun == 0) { +// INITREGULARALLOC(); +// notrun = 1; +// } sz = __builtin_align_up(sz, _Alignof(max_align_t)); // printf("%d \n", sz);