Skip to main content

GC_max_retries

Static GC_max_retries 

Source
pub unsafe static mut GC_max_retries: GC_word
Expand description

The maximum number of collections attempted before reporting out of memory after heap expansion fails. Initially 0. The setter and getter are unsynchronized, so GC_call_with_alloc_lock() (GC_call_with_reader_lock() in case of the getter) is required to avoid data race (if the value is modified after the collector is put into the multi-threaded mode).