trim some debug messages

This commit is contained in:
Folkert 2023-09-13 20:23:01 +02:00
parent fddec0ca24
commit 5ebd18cee0
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C

View file

@ -293,10 +293,6 @@ inline fn free_ptr_to_refcount(
const extra_bytes = std.math.max(alignment, @sizeOf(usize));
const allocation_ptr = @ptrCast([*]u8, refcount_ptr) - (extra_bytes - @sizeOf(usize));
if (DEBUG_ALLOC and builtin.target.cpu.arch != .wasm32) {
std.debug.print("💀 free {*}\n", .{allocation_ptr});
}
// NOTE: we don't even check whether the refcount is "infinity" here!
dealloc(allocation_ptr, alignment);
@ -429,10 +425,6 @@ pub fn allocateWithRefcount(
const alignment = std.math.max(ptr_width, element_alignment);
const length = alignment + data_bytes;
if (DEBUG_ALLOC and builtin.target.cpu.arch != .wasm32) {
std.debug.print("+ before allocate {} {} {} \n", .{ data_bytes, element_alignment, length });
}
var new_bytes: [*]u8 = alloc(length, alignment) orelse unreachable;
if (DEBUG_ALLOC and builtin.target.cpu.arch != .wasm32) {