JDK 9 RFR of JDK-8146668: Replace custom check/range functionality with check index/range methods in java.util.Objects

Martin Buchholz martinrb at google.com
Thu Jan 12 18:52:00 UTC 2017


We recently modernized all the *MicroBenchmark.java in java/util EXCEPT
for RangeCheckMicroBenchmark.
RangeCheckMicroBenchmark is old and crufty, but may still give us useful
numbers.
The range checking code in ArrayList was carefully written many years ago
to make the hotspot of that time happy; I'm always afraid that hotspot may
not have improved enough, but we have to trust it far more these days with
java.lang.invoke magic, which seems to work well.


More information about the core-libs-dev mailing list