- The native crash logger keeps the last 16 first-chance records in a static ring
(pushed in the VEH: no I/O, no allocation, no loader call). A flush writes the ones
not yet written, oldest first, each record once. Flushed from the last-chance filter
and, through the new export RC_FlushCrashLog, from the engine's ExitProcess /
TerminateProcess / RtlExitUserProcess / NtTerminateProcess detours on a crash code
(raw unmanaged function pointer, resolved and primed at install). Recovers the fatal
repeat of an address seen before, which the dedupe skips and which never reaches the
last-chance filter when a handler terminates the process.
- EnqueueCast refuses during a world transition (CastSlot, pure) and counts the
refusal in TransitionRejectedCount. The cast slot now owns the stop-wait note the
cast drain keeps per cast (CastSlot.StopWaitNoted, reset by each queued cast before
the publishing Volatile.Write of Pending), and DrainCasts reads the queue time once.
- The launcher's dump hold is capped at 15 min per client (DumpInProgressRule.Decide);
past it the kill checks resume.
- CrashExitRule: ExitProcess(-1) (0xFFFFFFFF) is no longer a crash exit; the rest of
the 0xC0000000-and-up range is unchanged, so CLR/C++ unhandled-exception exits
(0xE0434352, 0xE06D7363) still skip managed work.
- The heartbeat line carries qrej=<TransitionRejectedCount>.
Tests: EngineRobustnessTests (adds CastSlot stop-wait and ActionRing.TryPeekAt checks),
CrashLogFilterTests.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>