aboutsummaryrefslogtreecommitdiff
path: root/lib/std/heap/memory_pool.zig
AgeCommit message (Collapse)Author
2025-11-15MemoryPool: add unmanaged variants and make them the defaultJustus Klausecker
2025-04-13std: eradicate u29 and embrace std.mem.AlignmentAndrew Kelley
2025-01-28std.heap.memory_pool: make preheat() usable after init()John Benediktsson
2024-02-26Remove redundant test name prefixes now that test names are fully qualifiedRyan Liptak
Follow up to #19079, which made test names fully qualified. This fixes tests that now-redundant information in their test names. For example here's a fully qualified test name before the changes in this commit: "priority_queue.test.std.PriorityQueue: shrinkAndFree" and the same test's name after the changes in this commit: "priority_queue.test.shrinkAndFree"
2023-11-21std.heap: Use @alignOf(T) rather than 0 if not manually overridden for ↵Michael Pfaff
alignment of MemoryPool items
2023-11-19lib: correct unnecessary uses of 'var'mlugg
2023-11-01Use ArenaAllocator.reset in MemoryPoolKai Jellinghaus
2023-09-06std: enable FailingAllocator to fail on resizeGregory Anders
Now that allocator.resize() is allowed to fail, programs may wish to test code paths that handle resize() failure. The simplest way to do this now is to replace the vtable of the testing allocator with one that uses Allocator.noResize for the 'resize' function pointer. An alternative way to support this testing capability is to augment the FailingAllocator (which is already useful for testing allocation failure scenarios) to intentionally fail on calls to resize(). To do this, add a 'resize_fail_index' parameter to the FailingAllocator that causes resize() to fail after the given number of calls.
2023-06-24all: migrate code to new cast builtin syntaxmlugg
Most of this migration was performed automatically with `zig fmt`. There were a few exceptions which I had to manually fix: * `@alignCast` and `@addrSpaceCast` cannot be automatically rewritten * `@truncate`'s fixup is incorrect for vectors * Test cases are not formatted, and their error locations change
2023-06-16migration: std.math.{min, min3, max, max3} -> `@min` & `@max`r00ster91
2023-04-30std: fix a bunch of typosLinus Groh
The majority of these are in comments, some in doc comments which might affect the generated documentation, and a few in parameter names - nothing that should be breaking, however.
2022-12-15Improves the comment formatting.Felix "xq" Queißner
2022-12-15Implements std.heap.MemoryPool and friends.Felix "xq" Queißner