Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8259316 [REDO] C1/C2 compiler support for blackholes
  3. JDK-8273117

Release Note: Experimental Compiler Blackholes Support

XMLWordPrintable

    • Verified

      The experimental support for Compiler Blackholes is added. These are useful for low-level benchmarking, to avoid dead-code elimination on the critical paths, without affecting the benchmark performance. Current support is implemented as CompileCommand, accessible as `-XX:CompileCommand=blackhole,<method>`, with the plan to eventually graduate it to a public API.

      JMH is already able to auto-detect and use this facility when instructed/available. Please consult JMH documentation for the next steps.

            shade Aleksey Shipilev
            shade Aleksey Shipilev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: