aboutsummaryrefslogtreecommitdiff
path: root/src/memory_allocator.zig
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-12-28 19:28:12 -0800
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-12-28 19:28:12 -0800
commitc8da2618eee444e88eaff42360a3399b2dc2ff0e (patch)
treec814b12a3b18aa2debd17420cf24b59bb10802b2 /src/memory_allocator.zig
parent8e9af05d6a206b2726a827f5e141c859d26b6ede (diff)
downloadbun-c8da2618eee444e88eaff42360a3399b2dc2ff0e.tar.gz
bun-c8da2618eee444e88eaff42360a3399b2dc2ff0e.tar.zst
bun-c8da2618eee444e88eaff42360a3399b2dc2ff0e.zip
:scissors:
Diffstat (limited to 'src/memory_allocator.zig')
-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});