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);