Skip to content

Commit 199c343

Browse files
committed
rename FixedBufferAllocator to BumpAllocator
1 parent aaf24c4 commit 199c343

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/std/heap.zig

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ const windows = std.os.windows;
1010
const Alignment = std.mem.Alignment;
1111

1212
pub const ArenaAllocator = @import("heap/arena_allocator.zig").ArenaAllocator;
13+
pub const BumpAllocator = @import("heap/BumpAllocator.zig");
1314
pub const SmpAllocator = @import("heap/SmpAllocator.zig");
14-
pub const FixedBufferAllocator = @import("heap/FixedBufferAllocator.zig");
15+
/// Deprecated; to be removed after 0.16.0 is tagged.
16+
pub const FixedBufferAllocator = BumpAllocator;
1517
pub const PageAllocator = @import("heap/PageAllocator.zig");
1618
pub const SbrkAllocator = @import("heap/sbrk_allocator.zig").SbrkAllocator;
1719
pub const ThreadSafeAllocator = @import("heap/ThreadSafeAllocator.zig");
@@ -989,8 +991,8 @@ const page_size_max_default: ?usize = switch (builtin.os.tag) {
989991
test {
990992
_ = @import("heap/memory_pool.zig");
991993
_ = ArenaAllocator;
994+
_ = BumpAllocator;
992995
_ = GeneralPurposeAllocator;
993-
_ = FixedBufferAllocator;
994996
_ = ThreadSafeAllocator;
995997
_ = SbrkAllocator;
996998
if (builtin.target.cpu.arch.isWasm()) {
File renamed without changes.

0 commit comments

Comments
 (0)