Class TrivialMethodEscape

  • All Implemented Interfaces:
    IMethodEscapeAnalysis, INodeEscapeAnalysis

    public class TrivialMethodEscape
    extends Object
    implements IMethodEscapeAnalysis, INodeEscapeAnalysis
    Trivial method-level escape analysis. An instance does not escape from method m if the following hold:
    1. the instance is only ever pointed to by locals (it is never stored in the heap)
    2. the method m does NOT return (either normally or exceptionally) a pointer to the instance