Class ConcurrentEntryPoint

java.lang.Object
org.ek9lang.compiler.support.ConcurrentEntryPoint

public final class ConcurrentEntryPoint extends Object
THE mark of a CONCURRENT ENTRY POINT - a function or method whose body may run on another thread (a service operation, a handler given to a thread-spawning call such as TCP.accept, an element function of an async stream stage). The data-race check (E08251) walks exactly the marked bodies and the ones reachable from them, so the roots are the model: a root nobody marks is a race the compiler silently misses.

Every writer calls mark(ISymbol) and every reader isMarked(ISymbol), so a grep for this class finds every root (F22, 2026-10-20: the squirrel was written raw in five places, one of them fully qualified inline and invisible to a grep for the import).

  • Method Details

    • mark

      public static void mark(ISymbol symbol)
      Mark the symbol as a concurrent entry point.
    • isMarked

      public static boolean isMarked(ISymbol symbol)
      True if the symbol has been marked as a concurrent entry point.