pub fn classify_host_exit(exit_code: i32, commit_free_mb: u64) -> HostExitClassExpand description
Classify an abnormal host exit. OOM is identified two ways, deliberately defensive — Chromium sometimes surfaces an OOM as a generic crash code rather than the exact OOM exception (electron#40426):
- the exact Chromium OOM exit code, OR
- any abnormal exit taken while commit-free was already below the resume floor — the OS was out of memory, so whatever died, died of it.