Class CleanRuntimeRoutes
java.lang.Object
org.ek9lang.compiler.phase9.CleanRuntimeRoutes
- All Implemented Interfaces:
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final recordOne reviewed route: the callee type, the method, its parameter types, and which argument (zero based, asCallInstr.getArguments()) carries the function value the routine calls back. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BiPredicate
and, negate, or
-
Constructor Details
-
CleanRuntimeRoutes
public CleanRuntimeRoutes()
-
-
Method Details
-
test
-