Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7903094

JMH: Replace Math.log with predictable code in samples

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • None
    • None
    • tools
    • None
    • jmh

      Looks like Math.log is no longer intrinsified into C2 IR, so dead code / constant fold examples no longer work. It seems to have started since JDK 9 and JDK-8152907 that now defers the computation of log10 to quick stub. It does, however, limits the compiler optimizations around the Math.log, and samples fail. The samples should not rely on JDK internals, and should just use the custom written payload.

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

              Created:
              Updated:
              Resolved: