Skip to main content

configure_startup_gc_mode

Function configure_startup_gc_mode 

Source
pub fn configure_startup_gc_mode(state: &mut LuaState)
Expand description

Configure the hosted-runtime GC mode after the standard libraries are open.

Upstream 5.4/5.5 initialize a fresh raw state in incremental mode, then the standalone/runtime startup path restarts the collector and enters generational mode. Keep new_state() semantics raw-state faithful and apply the observable hosted default at this layer.