Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8300187

Improve ByteBufferTest.java

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 21
    • hotspot

      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

            epeter Emanuel Peter
            epeter Emanuel Peter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: