| ... | @@ -650,7 +650,7 @@ pub fn checkAllAllocationFailures(backing_allocator: std.mem.Allocator, comptime | ... | @@ -650,7 +650,7 @@ pub fn checkAllAllocationFailures(backing_allocator: std.mem.Allocator, comptime |
| 650 | error.OutOfMemory => { | 650 | error.OutOfMemory => { |
| 651 | if (failing_allocator_inst.allocated_bytes != failing_allocator_inst.freed_bytes) { | 651 | if (failing_allocator_inst.allocated_bytes != failing_allocator_inst.freed_bytes) { |
| 652 | print( | 652 | print( |
| 653 | "\nfail_index: {d}/{d}\nallocated bytes: {d}\nfreed bytes: {d}\nallocations: {d}\ndeallocations: {d}\n", | 653 | "\nfail_index: {d}/{d}\nallocated bytes: {d}\nfreed bytes: {d}\nallocations: {d}\ndeallocations: {d}\nallocation that was made to fail: {s}", |
| 654 | .{ | 654 | .{ |
| 655 | fail_index, | 655 | fail_index, |
| 656 | needed_alloc_count, | 656 | needed_alloc_count, |
| ... | @@ -658,6 +658,7 @@ pub fn checkAllAllocationFailures(backing_allocator: std.mem.Allocator, comptime | ... | @@ -658,6 +658,7 @@ pub fn checkAllAllocationFailures(backing_allocator: std.mem.Allocator, comptime |
| 658 | failing_allocator_inst.freed_bytes, | 658 | failing_allocator_inst.freed_bytes, |
| 659 | failing_allocator_inst.allocations, | 659 | failing_allocator_inst.allocations, |
| 660 | failing_allocator_inst.deallocations, | 660 | failing_allocator_inst.deallocations, |
| | 661 | failing_allocator_inst.getStackTrace(), |
| 661 | }, | 662 | }, |
| 662 | ); | 663 | ); |
| 663 | return error.MemoryLeakDetected; | 664 | return error.MemoryLeakDetected; |