simple_allocator

A simple, poorly-performing memory allocator
git clone https://git.bracken.jp/simple_allocator.git
Log | Files | Refs | Submodules | README | LICENSE

commit fc7dca9becff7a32f710ad63737c1be3dfaed3a3
parent b1b104779c4105cb33056acc81d4075b6f334ffe
Author: Chris Bracken <chris@bracken.jp>
Date:   Fri, 21 Oct 2022 23:01:42 -0700

Remove print on stdout during free

Diffstat:
Msrc/main.cc | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/main.cc b/src/main.cc @@ -104,8 +104,7 @@ void free(void *block) { } } size_t total_size = sizeof(struct header_t) + header->size; - void *result = sbrk(-static_cast<int>(total_size)); - std::cout << "Result: " << result << std::endl; + sbrk(-static_cast<int>(total_size)); pthread_mutex_unlock(&global_malloc_lock); return; }