allocgate: std Allocator interface refactor

This commit is contained in:
Lee Cannon
2021-10-29 00:37:25 +01:00
parent 1e0addcf73
commit 85de022c56
148 changed files with 1092 additions and 1095 deletions

View File

@@ -460,7 +460,7 @@ const WindowsThreadImpl = struct {
errdefer assert(windows.kernel32.HeapFree(heap_handle, 0, alloc_ptr) != 0);
const instance_bytes = @ptrCast([*]u8, alloc_ptr)[0..alloc_bytes];
const instance = std.heap.FixedBufferAllocator.init(instance_bytes).allocator.create(Instance) catch unreachable;
const instance = std.heap.FixedBufferAllocator.init(instance_bytes).getAllocator().create(Instance) catch unreachable;
instance.* = .{
.fn_args = args,
.thread = .{