Skip to documentation
SLOP

tiny.deadalloc.RepairPolicy

Reference tiny.deadalloc RepairPolicy

Defined in tiny.deadalloc.

API (4)

Actions

Public operations.

Fields and members

Public fields and members.

No direct callersNo direct callstiny.deadallocRepairPolicy
Static calls · unresolved targets: unknown · external targets: unknown.

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;
Called byCallsConfigrepairedtest sourcelib.deadalloc.src.exterminatortest: repair policy grows padding and...test sourcelib.deadalloc.src.exterminatortest: repair policy starts from zero ...private sourcelib.deadalloc.src.properties.exterminator.Rep...propertyRepairTablefromReportprivate sourcelib.deadalloc.src.exterminatorgrowU64private sourcelib.deadalloc.src.exterminatorgrowUsizeRepairPolicyfromReport
Static calls · unresolved targets: 0 · external targets: 0.

Audit

Definitions2
Public names2
Members3
Version26.7.0
Revisiondaab053ee433