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

C2: compiler/intrinsics/klass/CastNullCheckDroppingsTest.java fails with -XX:+AlwaysIncrementalInline

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P3 P3
    • tbd
    • 16
    • hotspot

      ----------System.err:(143/5820)----------
      events:
      [jdk.Deoptimization {
        startTime = 20:43:55.951
        compileId = 685
        compiler = "c2"
        method = jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Object, Object[])
        lineNumber = 43
        bci = 6
        instruction = "invokevirtual"
        reason = "class_check"
        action = "maybe_recompile"
        eventThread = "MainThread" (javaThreadId = 12)
        stackTrace = [
          jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 43
          java.lang.reflect.Method.invoke(Object, Object[]) line: 564
          compiler.intrinsics.klass.CastNullCheckDroppingsTest.runTest(Method, boolean, Object) line: 306
          compiler.intrinsics.klass.CastNullCheckDroppingsTest.main(String[]) line: 112
          jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Method, Object, Object[])
          ...
        ]
      }

      , jdk.Deoptimization {
        startTime = 20:43:56.133
        compileId = 685
        compiler = "c2"
        method = jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Object, Object[])
        lineNumber = 43
        bci = 6
        instruction = "invokevirtual"
        reason = "class_check"
        action = "maybe_recompile"
        eventThread = "MainThread" (javaThreadId = 12)
        stackTrace = [
          jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 43
          java.lang.reflect.Method.invoke(Object, Object[]) line: 564
          compiler.intrinsics.klass.CastNullCheckDroppingsTest.runTest(Method, boolean, Object) line: 306
          compiler.intrinsics.klass.CastNullCheckDroppingsTest.main(String[]) line: 112
          jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Method, Object, Object[])
          ...
        ]
      }

      , jdk.Deoptimization {
        startTime = 20:43:56.133
        compileId = 685
        compiler = "c2"
        method = jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Object, Object[])
        lineNumber = 43
        bci = 6
        instruction = "invokevirtual"
        reason = "class_check"
        action = "maybe_recompile"
        eventThread = "MainThread" (javaThreadId = 12)
        stackTrace = [
          jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 43
          java.lang.reflect.Method.invoke(Object, Object[]) line: 564
          compiler.intrinsics.klass.CastNullCheckDroppingsTest.runTest(Method, boolean, Object) line: 306
          compiler.intrinsics.klass.CastNullCheckDroppingsTest.main(String[]) line: 112
          jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Method, Object, Object[])
          ...
        ]
      }

      , jdk.Deoptimization {
        startTime = 20:43:56.133
        compileId = 685
        compiler = "c2"
        method = jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Object, Object[])
        lineNumber = 43
        bci = 6
        instruction = "invokevirtual"
        reason = "class_check"
        action = "maybe_recompile"
        eventThread = "MainThread" (javaThreadId = 12)
        stackTrace = [
          jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 43
          java.lang.reflect.Method.invoke(Object, Object[]) line: 564
          compiler.intrinsics.klass.CastNullCheckDroppingsTest.runTest(Method, boolean, Object) line: 306
          compiler.intrinsics.klass.CastNullCheckDroppingsTest.main(String[]) line: 112
          jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Method, Object, Object[])
          ...
        ]
      }

      , jdk.Deoptimization {
        startTime = 20:43:56.196
        compileId = 887
        compiler = "c2"
        method = jdk.internal.reflect.GeneratedMethodAccessor8.invoke(Object, Object[])
        lineNumber = -1
        bci = 37
        instruction = "checkcast"
        reason = "null_check"
        action = "make_not_entrant"
        eventThread = "MainThread" (javaThreadId = 12)
        stackTrace = [
          jdk.internal.reflect.GeneratedMethodAccessor8.invoke(Object, Object[])
          jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 43
          java.lang.reflect.Method.invoke(Object, Object[]) line: 564
          compiler.intrinsics.klass.CastNullCheckDroppingsTest.runTest(Method, boolean, Object) line: 316
          compiler.intrinsics.klass.CastNullCheckDroppingsTest.main(String[]) line: 112
          ...
        ]
      }

      , jdk.Deoptimization {
        startTime = 20:43:56.196
        compileId = 885
        compiler = "c2"
        method = compiler.intrinsics.klass.CastNullCheckDroppingsTest.testMHCast(String)
        lineNumber = 272
        bci = 10
        instruction = "checkcast"
        reason = "speculate_null_check"
        action = "make_not_entrant"
        eventThread = "MainThread" (javaThreadId = 12)
        stackTrace = [
          compiler.intrinsics.klass.CastNullCheckDroppingsTest.testMHCast(String) line: 272
          jdk.internal.reflect.GeneratedMethodAccessor8.invoke(Object, Object[])
          jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 43
          java.lang.reflect.Method.invoke(Object, Object[]) line: 564
          compiler.intrinsics.klass.CastNullCheckDroppingsTest.runTest(Method, boolean, Object) line: 316
          ...
        ]
      }

      ]
      java.lang.AssertionError: compilation must not got deoptimized
      at compiler.intrinsics.klass.CastNullCheckDroppingsTest.checkDeoptimization(CastNullCheckDroppingsTest.java:359)
      at compiler.intrinsics.klass.CastNullCheckDroppingsTest.runTest(CastNullCheckDroppingsTest.java:328)
      at compiler.intrinsics.klass.CastNullCheckDroppingsTest.main(CastNullCheckDroppingsTest.java:112)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:832)

            iveresov Igor Veresov
            vlivanov Vladimir Ivanov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: