summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Sotoudeh <matthew@masot.net>2024-05-17 16:23:25 -0700
committerMatthew Sotoudeh <matthew@masot.net>2024-05-17 16:23:25 -0700
commit22f6857bc2c029d41b924c9dcb8c42ad7a57df68 (patch)
treea0ca5e942a5e80d3d51aa7c377a84c5042505801
parentfba5d6fbb285bde53a3d9bbd62355bf4f96d6ab5 (diff)
can't print in malloc
-rw-r--r--lua_benchmark/main.c5
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;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback