Merge pull request 'std.heap.ArenaAllocator: add fuzz test + some optimizations' (#31407) from justusk/zig:fuzz-arena into master

Reviewed-on: https://codeberg.org/ziglang/zig/pulls/31407
Reviewed-by: Andrew Kelley <andrew@ziglang.org>
This commit is contained in:
Andrew Kelley
2026-03-11 03:00:07 +01:00
6 changed files with 592 additions and 135 deletions
+5
View File
@@ -478,6 +478,7 @@ pub fn build(b: *std.Build) !void {
.desc = "Run the behavior tests",
.optimize_modes = optimization_modes,
.include_paths = &.{},
.sanitize_thread = sanitize_thread,
.skip_single_threaded = skip_single_threaded,
.skip_non_native = skip_non_native,
.test_only = test_only,
@@ -503,6 +504,7 @@ pub fn build(b: *std.Build) !void {
.desc = "Run the compiler_rt tests",
.optimize_modes = optimization_modes,
.include_paths = &.{},
.sanitize_thread = sanitize_thread,
.skip_single_threaded = true,
.skip_non_native = skip_non_native,
.test_only = test_only,
@@ -529,6 +531,7 @@ pub fn build(b: *std.Build) !void {
.desc = "Run the zig libc implementation unit tests",
.optimize_modes = optimization_modes,
.include_paths = &.{},
.sanitize_thread = sanitize_thread,
.skip_single_threaded = true,
.skip_non_native = skip_non_native,
.test_only = test_only,
@@ -555,6 +558,7 @@ pub fn build(b: *std.Build) !void {
.desc = "Run the standard library tests",
.optimize_modes = optimization_modes,
.include_paths = &.{},
.sanitize_thread = sanitize_thread,
.skip_single_threaded = skip_single_threaded,
.skip_non_native = skip_non_native,
.test_only = test_only,
@@ -578,6 +582,7 @@ pub fn build(b: *std.Build) !void {
.root_module = addCompilerMod(b, .{
.optimize = optimize,
.target = target,
.sanitize_thread = sanitize_thread,
.single_threaded = single_threaded,
}),
.filters = test_filters,