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

[lworld] TestArrayAccessDeopt.java fails due to unexpected deoptimization

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • repo-valhalla
    • repo-valhalla
    • hotspot
    • Fix Understood

      -XX:TypeProfileLevel=222 -XX:+UseNullableValueFlattening -XX:+UseAtomicValueFlattening -XX:+UseNonAtomicValueFlattening

      [...]

      UNCOMMON TRAP method=TestArrayAccessDeopt.test7([LMyValue1;LMyValue1;)V bci=3 pc=0x00007f2c38259cc0, relative_pc=0x0000000000000120, debug_id=0 compiler=c2 compile_id=49 (@0x00007f2c38259cc0) thread=3344439 reason=speculate_class_check action=maybe_recompile unloaded_class_index=-1 debug_id=0
      REALLOC OBJECTS in thread 0x00007f2c4802eef0
           object <0x00000000d8a39350> of type 'MyValue1' allocated (24 bytes)
      DEOPT PACKING thread=0x00007f2c4802eef0 vframeArray=0x00007f2c48418fa0
         Compiled frame (sp=0x00007f2c52fff8b0 unextended sp=0x00007f2c52fff8b0, fp=0x00000000d939d8f8, real_fp=0x00007f2c52fff8e0, pc=0x00007f2c38259cc0)
           nmethod
      816 49 4 TestArrayAccessDeopt::test7 (5 bytes)
         Virtual frames (innermost/newest first):
            VFrame 0 (0x00007f2bf00adf18) - TestArrayAccessDeopt.test7([LMyValue1;LMyValue1;)V - aastore @ bci=3

      DEOPT UNPACKING thread=0x00007f2c4802eef0 vframeArray=0x00007f2c48418fa0 mode=2
         Virtual frames (outermost/oldest first):
            VFrame 0 (0x00007f2c4841a380) - TestArrayAccessDeopt.test7([LMyValue1;LMyValue1;)V - aastore @ bci=3 sp=0x00007f2c52fff870

      UNCOMMON TRAP method=TestArrayAccessDeopt.test7([LMyValue1;LMyValue1;)V bci=3 pc=0x00007f2c38259cc0, relative_pc=0x0000000000000120, debug_id=0 compiler=c2 compile_id=49 (@0x00007f2c38259cc0) thread=3344439 reason=speculate_class_check action=maybe_recompile unloaded_class_index=-1 debug_id=0
      REALLOC OBJECTS in thread 0x00007f2c4802eef0
           object <0x00000000d8a399d0> of type 'MyValue1' allocated (24 bytes)
      DEOPT PACKING thread=0x00007f2c4802eef0 vframeArray=0x00007f2c48417b30
         Compiled frame (sp=0x00007f2c52fff8b0 unextended sp=0x00007f2c52fff8b0, fp=0x00000000d939d8f8, real_fp=0x00007f2c52fff8e0, pc=0x00007f2c38259cc0)
           nmethod
      817 49 4 TestArrayAccessDeopt::test7 (5 bytes)
         Virtual frames (innermost/newest first):
            VFrame 0 (0x00007f2bf00adf18) - TestArrayAccessDeopt.test7([LMyValue1;LMyValue1;)V - aastore @ bci=3

      DEOPT UNPACKING thread=0x00007f2c4802eef0 vframeArray=0x00007f2c48417b30 mode=2
         Virtual frames (outermost/oldest first):
            VFrame 0 (0x00007f2c48418f10) - TestArrayAccessDeopt.test7([LMyValue1;LMyValue1;)V - aastore @ bci=3 sp=0x00007f2c52fff870

      UNCOMMON TRAP method=TestArrayAccessDeopt.test7([LMyValue1;LMyValue1;)V bci=3 pc=0x00007f2c38259cc0, relative_pc=0x0000000000000120, debug_id=0 compiler=c2 compile_id=49 (@0x00007f2c38259cc0) thread=3344439 reason=speculate_class_check action=maybe_recompile unloaded_class_index=-1 debug_id=0
      REALLOC OBJECTS in thread 0x00007f2c4802eef0
           object <0x00000000d8a3a050> of type 'MyValue1' allocated (24 bytes)
      DEOPT PACKING thread=0x00007f2c4802eef0 vframeArray=0x00007f2c48418fa0
         Compiled frame (sp=0x00007f2c52fff8b0 unextended sp=0x00007f2c52fff8b0, fp=0x00000000d939d8f8, real_fp=0x00007f2c52fff8e0, pc=0x00007f2c38259cc0)
           nmethod
      817 49 4 TestArrayAccessDeopt::test7 (5 bytes)
         Virtual frames (innermost/newest first):
            VFrame 0 (0x00007f2bf009dae8) - TestArrayAccessDeopt.test7([LMyValue1;LMyValue1;)V - aastore @ bci=3

      DEOPT UNPACKING thread=0x00007f2c4802eef0 vframeArray=0x00007f2c48418fa0 mode=2
         Virtual frames (outermost/oldest first):
            VFrame 0 (0x00007f2c4841a380) - TestArrayAccessDeopt.test7([LMyValue1;LMyValue1;)V - aastore @ bci=3 sp=0x00007f2c52fff870

      ];
       stderr: []
       exitValue = 0

      java.lang.RuntimeException: 'UNCOMMON TRAP' found in stdout
      at jdk.test.lib.process.OutputAnalyzer.shouldNotContain(OutputAnalyzer.java:299)
      at TestArrayAccessDeopt.main(TestArrayAccessDeopt.java:104)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:565)
      at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
      at java.base/java.lang.Thread.run(Thread.java:1447)

            thartmann Tobias Hartmann
            thartmann Tobias Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: