| ... | @@ -17,7 +17,7 @@ var base_allocator_instance = std.heap.FixedBufferAllocator.init(""); | ... | @@ -17,7 +17,7 @@ var base_allocator_instance = std.heap.FixedBufferAllocator.init(""); |
| 17 | /// This should only be used in temporary test programs. | 17 | /// This should only be used in temporary test programs. |
| 18 | pub const allocator = allocator_instance.allocator(); | 18 | pub const allocator = allocator_instance.allocator(); |
| 19 | pub var allocator_instance: std.heap.GeneralPurposeAllocator(.{ | 19 | pub var allocator_instance: std.heap.GeneralPurposeAllocator(.{ |
| 20 | .stack_trace_frames = 10, | 20 | .stack_trace_frames = if (std.debug.sys_can_stack_trace) 10 else 0, |
| 21 | .resize_stack_traces = true, | 21 | .resize_stack_traces = true, |
| 22 | // A unique value so that when a default-constructed | 22 | // A unique value so that when a default-constructed |
| 23 | // GeneralPurposeAllocator is incorrectly passed to testing allocator, or | 23 | // GeneralPurposeAllocator is incorrectly passed to testing allocator, or |