Files
lightcraft/crates/engine
insideTheFluxandClaude Opus 5.5 be25203074 Never crash: the work gate counts held bytes exactly past usize::MAX (#2576)
Review follow-up: a saturating usize count lost reservations. With a
usize::MAX permit and an urgent 101-byte one, dropping the large one first
reset the count to 0 while the 101 bytes were still held; and on a gate whose
limit is usize::MAX the saturated sum never exceeded it, so a second holder
didn't wait. The held count is now a u128 (exact for any number of usize
permits); usage() reports it saturated to usize. The test covers both release
orders and the usize::MAX limit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PtjHGt5gnCHXgLt4NbGorf
2026-10-22 20:24:15 -07:00
..
2026-10-15 03:40:15 -04:00
2026-10-14 23:23:18 -04:00