| ... | @@ -90,26 +90,26 @@ pub fn checkMemIsDefined(qzz: []const u8) usize { | ... | @@ -90,26 +90,26 @@ pub fn checkMemIsDefined(qzz: []const u8) usize { |
| 90 | | 90 | |
| 91 | /// Do a full memory leak check (like --leak-check=full) mid-execution. | 91 | /// Do a full memory leak check (like --leak-check=full) mid-execution. |
| 92 | pub fn doLeakCheck() void { | 92 | pub fn doLeakCheck() void { |
| 93 | doClientRequestStmt(.DO_LEAK_CHECK, 0, 0, 0, 0, 0); | 93 | doClientRequestStmt(.DoLeakCheck, 0, 0, 0, 0, 0); |
| 94 | } | 94 | } |
| 95 | | 95 | |
| 96 | /// Same as doLeakCheck() but only showing the entries for | 96 | /// Same as doLeakCheck() but only showing the entries for |
| 97 | /// which there was an increase in leaked bytes or leaked nr of blocks | 97 | /// which there was an increase in leaked bytes or leaked nr of blocks |
| 98 | /// since the previous leak search. | 98 | /// since the previous leak search. |
| 99 | pub fn doAddedLeakCheck() void { | 99 | pub fn doAddedLeakCheck() void { |
| 100 | doClientRequestStmt(.DO_LEAK_CHECK, 0, 1, 0, 0, 0); | 100 | doClientRequestStmt(.DoLeakCheck, 0, 1, 0, 0, 0); |
| 101 | } | 101 | } |
| 102 | | 102 | |
| 103 | /// Same as doAddedLeakCheck() but showing entries with | 103 | /// Same as doAddedLeakCheck() but showing entries with |
| 104 | /// increased or decreased leaked bytes/blocks since previous leak | 104 | /// increased or decreased leaked bytes/blocks since previous leak |
| 105 | /// search. | 105 | /// search. |
| 106 | pub fn doChangedLeakCheck() void { | 106 | pub fn doChangedLeakCheck() void { |
| 107 | doClientRequestStmt(.DO_LEAK_CHECK, 0, 2, 0, 0, 0); | 107 | doClientRequestStmt(.DoLeakCheck, 0, 2, 0, 0, 0); |
| 108 | } | 108 | } |
| 109 | | 109 | |
| 110 | /// Do a summary memory leak check (like --leak-check=summary) mid-execution. | 110 | /// Do a summary memory leak check (like --leak-check=summary) mid-execution. |
| 111 | pub fn doQuickLeakCheck() void { | 111 | pub fn doQuickLeakCheck() void { |
| 112 | doClientRequestStmt(.DO_LEAK_CHECK, 1, 0, 0, 0, 0); | 112 | doClientRequestStmt(.DoLeakCheck, 1, 0, 0, 0, 0); |
| 113 | } | 113 | } |
| 114 | | 114 | |
| 115 | /// Return number of leaked, dubious, reachable and suppressed bytes found by | 115 | /// Return number of leaked, dubious, reachable and suppressed bytes found by |
| ... | @@ -191,7 +191,7 @@ test countLeakBlocks { | ... | @@ -191,7 +191,7 @@ test countLeakBlocks { |
| 191 | /// impossible to segfault your system by using this call. | 191 | /// impossible to segfault your system by using this call. |
| 192 | pub fn getVbits(zza: []u8, zzvbits: []u8) u2 { | 192 | pub fn getVbits(zza: []u8, zzvbits: []u8) u2 { |
| 193 | std.debug.assert(zzvbits.len >= zza.len / 8); | 193 | std.debug.assert(zzvbits.len >= zza.len / 8); |
| 194 | return @as(u2, @intCast(doClientRequestExpr(0, .GetVbits, @intFromPtr(zza.ptr), @intFromPtr(zzvbits), zza.len, 0, 0))); | 194 | return @as(u2, @intCast(doClientRequestExpr(0, .GetVbits, @intFromPtr(zza.ptr), @intFromPtr(zzvbits.ptr), zza.len, 0, 0))); |
| 195 | } | 195 | } |
| 196 | | 196 | |
| 197 | /// Set the validity data for addresses zza, copying it | 197 | /// Set the validity data for addresses zza, copying it |
| ... | @@ -204,7 +204,7 @@ pub fn getVbits(zza: []u8, zzvbits: []u8) u2 { | ... | @@ -204,7 +204,7 @@ pub fn getVbits(zza: []u8, zzvbits: []u8) u2 { |
| 204 | /// impossible to segfault your system by using this call. | 204 | /// impossible to segfault your system by using this call. |
| 205 | pub fn setVbits(zzvbits: []u8, zza: []u8) u2 { | 205 | pub fn setVbits(zzvbits: []u8, zza: []u8) u2 { |
| 206 | std.debug.assert(zzvbits.len >= zza.len / 8); | 206 | std.debug.assert(zzvbits.len >= zza.len / 8); |
| 207 | return @as(u2, @intCast(doClientRequestExpr(0, .SetVbits, @intFromPtr(zza.ptr), @intFromPtr(zzvbits), zza.len, 0, 0))); | 207 | return @as(u2, @intCast(doClientRequestExpr(0, .SetVbits, @intFromPtr(zza.ptr), @intFromPtr(zzvbits.ptr), zza.len, 0, 0))); |
| 208 | } | 208 | } |
| 209 | | 209 | |
| 210 | /// Disable and re-enable reporting of addressing errors in the | 210 | /// Disable and re-enable reporting of addressing errors in the |