zig/lib/std/heap
Alex Rønne Petersen 481b7bf3f0
std.Target: Remove functions that just wrap component functions.
Functions like isMinGW() and isGnuLibC() have a good reason to exist: They look
at multiple components of the target. But functions like isWasm(), isDarwin(),
isGnu(), etc only exist to save 4-8 characters. I don't think this is a good
enough reason to keep them, especially given that:

* It's not immediately obvious to a reader whether target.isDarwin() means the
  same thing as target.os.tag.isDarwin() precisely because isMinGW() and similar
  functions *do* look at multiple components.
* It's not clear where we would draw the line. The logical conclusion before
  this commit would be to also wrap Arch.isX86(), Os.Tag.isSolarish(),
  Abi.isOpenHarmony(), etc... this obviously quickly gets out of hand.
* It's nice to just have a single correct way of doing something.
2025-02-17 19:18:19 +01:00
..
arena_allocator.zig std.mem.Allocator: introduce remap function to the interface 2025-02-06 14:23:23 -08:00
debug_allocator.zig std.Target: Remove functions that just wrap component functions. 2025-02-17 19:18:19 +01:00
FixedBufferAllocator.zig std.mem.Allocator: introduce remap function to the interface 2025-02-06 14:23:23 -08:00
memory_pool.zig std.heap.memory_pool: make preheat() usable after init() 2025-01-28 00:06:54 +01:00
PageAllocator.zig add std.heap.SmpAllocator 2025-02-07 12:20:12 -08:00
sbrk_allocator.zig Fix build failure in sbrk allocator, caused by #20511 2025-02-17 15:37:19 +01:00
SmpAllocator.zig std.heap.SmpAllocator: back to simple free 2025-02-08 16:46:56 -08:00
ThreadSafeAllocator.zig std.heap.ThreadSafeAllocator: update to new Allocator API 2025-02-06 14:23:23 -08:00
WasmAllocator.zig std.Target: Remove functions that just wrap component functions. 2025-02-17 19:18:19 +01:00