fn alloc(ctx: *anyopaque, len: usize, alignment: Alignment, _: usize) ?[*]u8
ctx: *anyopaque
len: usize
alignment: Alignment
_: usize
1909 1910 1911 1912 1913 1914 1915 1916
fn alloc(ctx: *anyopaque, len: usize, alignment: Alignment, _: usize) ?[*]u8 { @disableInstrumentation(); const f: *FuzzMultiThreadedAllocator = @ptrCast(@alignCast(ctx)); const memory = f.allocInner(len, alignment) orelse return null; _ = @atomicRmw(usize, &f.active_allocs, .Add, 1, .monotonic); return memory; }