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/debug.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/debug.zig')
| -rw-r--r-- | lib/std/debug.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/debug.zig b/lib/std/debug.zig index dd4edf832b..9df7370ad0 100644 --- a/lib/std/debug.zig +++ b/lib/std/debug.zig @@ -2352,7 +2352,7 @@ var debug_info_arena_allocator: std.heap.ArenaAllocator = undefined; fn getDebugInfoAllocator() *mem.Allocator { if (debug_info_allocator) |a| return a; - debug_info_arena_allocator = std.heap.ArenaAllocator.init(std.heap.direct_allocator); + debug_info_arena_allocator = std.heap.ArenaAllocator.init(std.heap.page_allocator); debug_info_allocator = &debug_info_arena_allocator.allocator; return &debug_info_arena_allocator.allocator; } |
