aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/memory_allocator.zig7
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});