fix: add _pad to IdleDeadline to avoid identity_map pointer aliasing

This commit is contained in:
Pierre Tachoire
2026-02-24 21:31:41 +01:00
parent ca2df83928
commit 8291e4ba73

View File

@@ -20,6 +20,9 @@ const std = @import("std");
const IdleDeadline = @This();
// Padding to avoid zero-size struct, which causes identity_map pointer collisions.
_pad: bool = false,
pub fn init() IdleDeadline {
return .{};
}