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

C1 trouble in VarHandle.getObject tests

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • None
    • core-libs
    • None

      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

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

              Created:
              Updated:
              Resolved: