Skip to main content

mark_snapshot_floor

Function mark_snapshot_floor 

Source
pub(crate) fn mark_snapshot_floor()
Expand description

Mark the current write position as the earliest byte a panic snapshot may contain, called after the boot-time replay.

Without this, drain_snapshot would capture the replayed report of the previous crash too, and every stored report would swallow its predecessor until the snapshot buffer only held repeats.