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

Add diagnostic RepeatCompilation utility

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 16
    • Fix Version/s: 16
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b05

      Description

      To be able to stress test, benchmark and diagnose issues with specific compilations, it would be invaluable to have a diagnostic flag and compile command to repeat any or all JIT compilation an arbitrary but configurable number of times.

      -XX:CompileCommand=option,java.lang.String::hashCode,intx,RepeatCompilation,10000

      It doesn't matter much if the compiled code is installed on the first or last compilation, as long as the compilation itself is repeatable.

      To facilitate experiments on minimal "Hello World" style apps, the repeated compilation should honor -Xbatch and not shut down until the requested number of compilations has been performed.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              neliasso Nils Eliasson (Inactive)
              Reporter:
              redestad Claes Redestad
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: