pub fn ensure_sufficient_stack<R>(f: impl FnOnce() -> R) -> R