diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-11-25 17:25:06 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-11-25 17:25:06 -0500 |
| commit | cb38bd0a1436bd18de8ed57c45ffc890c8ddfb78 (patch) | |
| tree | c695fdb19e30581b8227ab286ce0a3b35971f34c /lib/std/atomic/queue.zig | |
| parent | 35d65cceb8aa4360accc0db30b2b1448159e7d26 (diff) | |
| download | zig-cb38bd0a1436bd18de8ed57c45ffc890c8ddfb78.tar.gz zig-cb38bd0a1436bd18de8ed57c45ffc890c8ddfb78.zip | |
rename std.heap.direct_allocator to std.heap.page_allocator
std.heap.direct_allocator is still available for now but it is marked
deprecated.
Diffstat (limited to 'lib/std/atomic/queue.zig')
| -rw-r--r-- | lib/std/atomic/queue.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/atomic/queue.zig b/lib/std/atomic/queue.zig index 9d6b15ff4a..53f1d99f13 100644 --- a/lib/std/atomic/queue.zig +++ b/lib/std/atomic/queue.zig @@ -152,8 +152,8 @@ const puts_per_thread = 500; const put_thread_count = 3; test "std.atomic.Queue" { - var plenty_of_memory = try std.heap.direct_allocator.alloc(u8, 300 * 1024); - defer std.heap.direct_allocator.free(plenty_of_memory); + var plenty_of_memory = try std.heap.page_allocator.alloc(u8, 300 * 1024); + defer std.heap.page_allocator.free(plenty_of_memory); var fixed_buffer_allocator = std.heap.ThreadSafeFixedBufferAllocator.init(plenty_of_memory); var a = &fixed_buffer_allocator.allocator; |
