Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8281548

Add escape analysis tracing flag

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 19
    • 19
    • hotspot
    • b12

    Description

      There are currently 2 flags related to EA debugging, PrintEscapeAnalysis, which prints information about objects that don't escape. And PrintEliminateAllocations, which prints when an allocation is eliminated by a compiler optimization.

      However, neither of these flags are very useful to determine why a particular allocation escapes. i.e. a failure to scalar replace an object is observed, and we want to track down why the object escaped, or why it can not be scalar replaced.

      We can add a new tracing option, such as TraceEscapeAnalysis, that prints detailed information about why an object is:
      1. marked with a particular escape state
      2. marked as not scalar replaceable.

      Attachments

        Issue Links

          Activity

            People

              jvernee Jorn Vernee
              jvernee Jorn Vernee
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: