Function boehm_gc::set_oom_fn [] [src]

pub fn set_oom_fn(oom_fn: extern "C" fn(_: size_t) -> *mut u8)

Sets the function that the GC calls when all available memory is exhausted. For now, this function must not return. The Boehm GC /does/ allow the function to return, but it must return either null or a previously-allocated heap object.

It is imperative that the supplied oom_fn not allocate.