Package com.oracle.truffle.api.utilities
Class CyclicAssumption
- java.lang.Object
-
- com.oracle.truffle.api.utilities.CyclicAssumption
-
public class CyclicAssumption extends java.lang.Object
Holds anAssumption
, 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 Summary
Constructors Constructor Description CyclicAssumption(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Assumption
getAssumption()
void
invalidate()
-
-
-
Method Detail
-
invalidate
public void invalidate()
-
getAssumption
public Assumption getAssumption()
-
-