Class CleanRuntimeRoutes

java.lang.Object
org.ek9lang.compiler.phase9.CleanRuntimeRoutes
All Implemented Interfaces:
BiPredicate<CallInstr, String>

public final class CleanRuntimeRoutes extends Object implements BiPredicate<CallInstr, String>
THE reviewed clean runtime routines - a new row is a C review first. A clean routine is a runtime function that calls user code (a function value passed to it) while every pointer its C frames hold is also held by a counted reference the user code cannot drop, and that changes no count between two callbacks; a collection that runs inside that user code can therefore free nothing the routine still uses (EK9_NATIVE_CYCLE_COLLECTOR_DESIGN.md ยง14.3; route B is the first instance, a TCPHandler entered by the TCP connection worker). A function value whose only use is to be the listed argument of a listed call is not rooted by that use (CallbackReachableOperations), so its _call gets safe points; the runtime site that makes the callback is marked EK9_CLEAN_ENTRY and listed in CallbackRouteDriftTest.CLEAN_ENTRIES - the table and the C marks change together.

Asked as test(call, value): is value the listed argument of call? Stateless: hold one.