tiny.deadalloc.RepairPolicy
Defined in tiny.deadalloc.
API (4)
Actions
Public operations.
Fields and members
Public fields and members.
Source
Source: lib/deadalloc/src/exterminator.zig:102
zig
pub const RepairPolicy = struct { red_zone_bytes: usize = 16, quarantine_epochs: u64 = 16, repairs: RepairTable = .{}, pub fn fromReport(report: report_mod.Report, current: RepairPolicy) RepairPolicy { var next = current; if (report.counters.buffer_overflow > 0) { next.red_zone_bytes = growUsize(current.red_zone_bytes, 16, 1024); } if (report.counters.use_after_free > 0 or report.counters.double_free > 0) { next.quarantine_epochs = growU64(current.quarantine_epochs, 1, 4096); } next.repairs = RepairTable.fromReport(report, current.repairs); return next; }};Source: lib/deadalloc/src/root.zig:53
zig
pub const RepairPolicy = exterminator_mod.RepairPolicy;Audit
| Definitions | 2 |
|---|---|
| Public names | 2 |
| Members | 3 |
| Version | 26.7.0 |
| Revision | daab053ee433 |