diff options
author | 2022-12-28 19:28:12 -0800 | |
---|---|---|
committer | 2022-12-28 19:28:12 -0800 | |
commit | c8da2618eee444e88eaff42360a3399b2dc2ff0e (patch) | |
tree | c814b12a3b18aa2debd17420cf24b59bb10802b2 /src/memory_allocator.zig | |
parent | 8e9af05d6a206b2726a827f5e141c859d26b6ede (diff) | |
download | bun-c8da2618eee444e88eaff42360a3399b2dc2ff0e.tar.gz bun-c8da2618eee444e88eaff42360a3399b2dc2ff0e.tar.zst bun-c8da2618eee444e88eaff42360a3399b2dc2ff0e.zip |
:scissors:
Diffstat (limited to 'src/memory_allocator.zig')
-rw-r--r-- | src/memory_allocator.zig | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/memory_allocator.zig b/src/memory_allocator.zig index ad207c7cf..fb5fd06f2 100644 --- a/src/memory_allocator.zig +++ b/src/memory_allocator.zig @@ -112,13 +112,6 @@ const ZAllocator = struct { const malloc_size = c.malloc_size; pub const supports_posix_memalign = true; - // This is copied from Rust's mimalloc integration - const MI_MAX_ALIGN_SIZE = 16; - inline fn mi_malloc_satisfies_alignment(alignment: usize, size: usize) bool { - return (alignment == @sizeOf(*anyopaque) or - (alignment == MI_MAX_ALIGN_SIZE and size >= (MI_MAX_ALIGN_SIZE / 2))); - } - fn alignedAlloc(len: usize, alignment: usize) ?[*]u8 { if (comptime FeatureFlags.log_allocations) std.debug.print("Malloc: {d}\n", .{len}); |