Class CancelPointsEnabled

java.lang.Object
org.ek9lang.compiler.backend.CancelPointsEnabled
All Implemented Interfaces:
BooleanSupplier

public final class CancelPointsEnabled extends Object implements BooleanSupplier
THE reading of -D"ek9.cancel.points": does a back end emit anything for a CANCEL_POINT (EK9_BACKEND_IR_CONTRACTS.md Contract 24)? On unless set to false - the switch exists to measure what the points cost; a task running EK9 code then stops only at the runtime's wait points or the close's bounded join. Both back ends (jvm/CancelPointAsmGenerator; the native cancel-point generator on llvm-stdlib) and the build key (cli/BuildKeyOf: the switch changes the generated code, so a build under one setting is never reused for the other, DI-7) hold one; never a second System.getProperty of the name.
  • Field Details

    • PROPERTY

      public static final String PROPERTY
      The compiler's switch for the measurement: on unless set to false.
      See Also:
  • Constructor Details

    • CancelPointsEnabled

      public CancelPointsEnabled()
  • Method Details