From 38154796a5789b015fec2f7d928b5e0fcbe8ec1b Mon Sep 17 00:00:00 2001 From: Akilan Date: Mon, 30 Dec 2024 12:59:30 +0000 Subject: [PATCH] test whole program --- benchmarks/benchmarks/cfrac/malloc.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/benchmarks/benchmarks/cfrac/malloc.h b/benchmarks/benchmarks/cfrac/malloc.h index 9397055..8eeb12b 100644 --- a/benchmarks/benchmarks/cfrac/malloc.h +++ b/benchmarks/benchmarks/cfrac/malloc.h @@ -188,9 +188,6 @@ void* MALLOCCHERI(size_t sz) { sz = __builtin_align_up(sz, _Alignof(max_align_t)); - // printf("%d \n", sz); - printf("%d Malloc counter new\n", sz); - if (sz > MallocCounter) { printf("%d Threashold exceeded\n", sz); INITREGULARALLOC(1); @@ -198,6 +195,9 @@ void* MALLOCCHERI(size_t sz) MallocCounter -= sz; + // printf("%d \n", sz); + printf("%d Malloc counter new\n", MallocCounter); + void *ptrLink = &ptr[MallocCounter]; ptrLink = cheri_setbounds(ptrLink, sz);