classify_host_exit

Function classify_host_exit 

Source
pub fn classify_host_exit(exit_code: i32, commit_free_mb: u64) -> HostExitClass
Expand 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):

  1. the exact Chromium OOM exit code, OR
  2. 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.