Skip to main content

force_unsanctioned_gil_on_control_plane

Function force_unsanctioned_gil_on_control_plane 

Source
pub fn force_unsanctioned_gil_on_control_plane()
Expand description

Force one unsanctioned control-plane GIL acquisition and count it, for the negative fitness test. Runs on a freshly ControlPlane-tagged thread and routes through check_gil_site so the real gating is exercised; the debug-build debug_assert panic is swallowed so the increment sticks (in release builds there is no assert and the counter bumps directly).