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

-XX:CompileCommand=blackhole,* should only accept empty static methods

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2
    • 16
    • 16
    • hotspot

    Description

      In JDK-8257827 CSR, a further comment was raised about changing the semantics of the method. This allegedly introduces the conformance problem. While it is still an open question where the conformance problem is real, we can sidestep the entire issue by allowing only empty static methods to be blackholed. This eliminates any behavioral difference: empty methods have no side effects, and static methods do not need any null checks.

      JMH changes are done in CODETOOLS-7902813.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: