Class CyclicAssumption

java.lang.Object
com.oracle.truffle.api.utilities.CyclicAssumption

public class CyclicAssumption extends Object
Holds an Assumption, and knows how to recreate it with the same properties on invalidation. Used so that mutability is isolated in this class, and all other classes that need an assumption that may be recreated can have a final reference to an object of this class. Note that you should be careful that repeated invalidations do not cause a deoptimization loop in that same way that you would with any other assumption.
  • Constructor Details

    • CyclicAssumption

      public CyclicAssumption(String name)
  • Method Details

    • invalidate

      public void invalidate()
    • getAssumption

      public Assumption getAssumption()