-
Enhancement
-
Resolution: Unresolved
-
P4
-
21
https://github.com/openjdk/jdk/blob/master/test/hotspot/jtreg/compiler/intrinsics/unsafe/ByteBufferTest.java
Vladimir K:
ByteBufferTest::stepUsingAccessors() code is not C2 friendly because it will get profiling data only for first loop before triggering OSR and full compilation. Which may cause deoptimization and recompilation when it hit following loops. That is may be why iterations value was so high to make sure profiling data is collected for all loops.
The test should have separate methods for each type of intrinsics.
https://github.com/openjdk/jdk/pull/11944#pullrequestreview-1246699672
Vladimir K:
ByteBufferTest::stepUsingAccessors() code is not C2 friendly because it will get profiling data only for first loop before triggering OSR and full compilation. Which may cause deoptimization and recompilation when it hit following loops. That is may be why iterations value was so high to make sure profiling data is collected for all loops.
The test should have separate methods for each type of intrinsics.
https://github.com/openjdk/jdk/pull/11944#pullrequestreview-1246699672
- relates to
-
JDK-8299962 Speed up compiler/intrinsics/unsafe/DirectByteBufferTest.java and HeapByteBufferTest.java
- Resolved