We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0e1a6a commit ff8e759Copy full SHA for ff8e759
lib/std/testing.zig
@@ -17,7 +17,7 @@ var base_allocator_instance = std.heap.FixedBufferAllocator.init("");
17
/// This should only be used in temporary test programs.
18
pub const allocator = allocator_instance.allocator();
19
pub var allocator_instance: std.heap.GeneralPurposeAllocator(.{
20
- .stack_trace_frames = 10,
+ .stack_trace_frames = if (std.debug.sys_can_stack_trace) 10 else 0,
21
.resize_stack_traces = true,
22
// A unique value so that when a default-constructed
23
// GeneralPurposeAllocator is incorrectly passed to testing allocator, or
0 commit comments