From c8da2618eee444e88eaff42360a3399b2dc2ff0e Mon Sep 17 00:00:00 2001 From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Wed, 28 Dec 2022 19:28:12 -0800 Subject: :scissors: --- src/memory_allocator.zig | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/memory_allocator.zig') 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}); -- cgit v1.2.3