zig/std/os
Andrew Kelley 445b03384a introduce std.heap.ArenaAllocator and std.heap.DirectAllocator
* DirectAllocator does the underlying syscall for every allocation.
 * ArenaAllocator takes another allocator as an argument and
   allocates bytes up front, falling back to DirectAllocator with
   increasingly large allocation sizes, to avoid calling it too often.
   Then the entire arena can be freed at once.

The self hosted parser is updated to take advantage of ArenaAllocator
for the AST that it returns. This significantly reduces the complexity
of cleanup code.

docgen and build runner are updated to use the combination of
ArenaAllocator and DirectAllocator instead of IncrementingAllocator,
which is now deprecated in favor of FixedBufferAllocator combined
with DirectAllocator.

The C allocator calls aligned_alloc instead of malloc, in order to
respect the alignment parameter.

Added asserts in Allocator to ensure that implementors of the
interface return slices of the correct size.

Fixed a bug in Allocator when you call realloc to grow the allocation.
2018-02-12 02:14:44 -05:00
..
linux Merge remote-tracking branch 'origin/master' into error-sets 2018-02-08 20:45:26 -05:00
windows introduce std.heap.ArenaAllocator and std.heap.DirectAllocator 2018-02-12 02:14:44 -05:00
child_process.zig std.os and std.io API update 2018-02-10 21:02:24 -05:00
darwin.zig syntax: functions require return type. remove `->` 2018-01-25 04:10:11 -05:00
darwin_errno.zig all behavior tests passing for macos 2017-08-27 05:15:24 -04:00
file.zig std.os and std.io API update 2018-02-10 21:02:24 -05:00
get_user_id.zig *WIP* error sets converting std lib 2018-01-31 22:48:40 -05:00
index.zig std: refactor posixOpen to be friendlier to error return traces 2018-02-11 05:26:51 -05:00
path.zig std lib: modify allocator idiom 2018-02-09 18:27:50 -05:00
zen.zig std: fix fn return syntax for zen os 2018-01-29 10:57:27 -05:00