pub fn check_timeout() -> Result<()>Expand description
Check if conversion has timed out. Returns Err if deadline exceeded.
Also samples RSS via /proc/self/status every ~1024 calls and raises
Fatal:oom:memory_budget if the process is approaching the worker
memory cap. R35.A witnesses (plain-TeX $$\displaylines{ … \picture … }$$, 7 sandbox papers from 1999–2006) trigger a runaway where
set_alloc_error_hook fires AFTER the process has already allocated
~5+ GB; that hook can’t easily walk back the call site under
panic="unwind". Sampling RSS here at well below the OS ulimit
gives us a clean diagnostic and a unwound stack via fatal!.