Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8080588 VarHandles development
  3. JDK-8130923

C1 trouble in VarHandle.getObject tests

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
      None

      Description

      It seems that in addition to JDK-8130920, getObject pays additional cost with C1:
      http://cr.openjdk.java.net/~shade/8130923/ObjectTest.java

      o.o.v.get.acc.ObjectTest.plain avgt 15 16.382 ± 0.009 ns/op
      o.o.v.get.acc.ObjectTest.unsafe avgt 15 18.902 ± 0.009 ns/op
      o.o.v.get.acc.ObjectTest.varHandle avgt 15 104.206 ± 5.003 ns/op

      The disassembly shows additional Class.cast dance:
       http://cr.openjdk.java.net/~shade/8130923/c1.perfasm
       http://cr.openjdk.java.net/~shade/8130923/c2.perfasm

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              shade Aleksey Shipilev
              Reporter:
              shade Aleksey Shipilev
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: