diff options
author | Matthew Sotoudeh <matthew@masot.net> | 2024-05-17 16:23:25 -0700 |
---|---|---|
committer | Matthew Sotoudeh <matthew@masot.net> | 2024-05-17 16:23:25 -0700 |
commit | 22f6857bc2c029d41b924c9dcb8c42ad7a57df68 (patch) | |
tree | a0ca5e942a5e80d3d51aa7c377a84c5042505801 /lua_benchmark/main.c | |
parent | fba5d6fbb285bde53a3d9bbd62355bf4f96d6ab5 (diff) |
can't print in malloc
Diffstat (limited to 'lua_benchmark/main.c')
-rw-r--r-- | lua_benchmark/main.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lua_benchmark/main.c b/lua_benchmark/main.c index 4f1eb04..ddcf2fe 100644 --- a/lua_benchmark/main.c +++ b/lua_benchmark/main.c @@ -59,10 +59,7 @@ static void init_allocator() { } static int grow_pool() { - if (sbrk(POOL_SIZE) != (void*)((uint8_t*)POOL + POOL_SIZE)) { - printf("sbrk failure!\n"); - return 0; - } + if (sbrk(POOL_SIZE) != (void*)((uint8_t*)POOL + POOL_SIZE)) return 0; POOL_SIZE *= 2; grow_buddy(POOL, POOL_SIZE, &BUDDY); return 1; |