Blocks :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
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
|