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

compiler/c2/aarch64/TestVolatilesSerial.java failed with "java.lang.RuntimeException: Wrong method"

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b15
    • CPU:
      aarch64
    • OS:
      linux

      Description

      The following test failed in the JDK17 CI:

      compiler/c2/aarch64/TestVolatilesSerial.java

      Here's a snippet from the log file:

      at compiler.c2.aarch64.TestVolatiles.checkCompile(TestVolatiles.java:196)
      at compiler.c2.aarch64.TestVolatiles.checkstore(TestVolatiles.java:255)
      at compiler.c2.aarch64.TestVolatiles.checkoutput(TestVolatiles.java:565)
      at compiler.c2.aarch64.TestVolatiles.runtest(TestVolatiles.java:144)
      at compiler.c2.aarch64.TestVolatiles.runtest(TestVolatiles.java:123)
      at compiler.c2.aarch64.TestVolatilesSerial.main(TestVolatilesSerial.java:76)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:568)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
      at java.base/java.lang.Thread.run(Thread.java:831)

      JavaTest Message: Test threw exception: java.lang.RuntimeException
      JavaTest Message: shutting down test

      result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Wrong method - name: 'testObj'! -- expecting testInt CompileCommand: compileonly compiler/c2/aarch64/TestVolatileStore.test* bool compileonly = true ============================= C2-compiled nmethod ============================== ----------------------- MetaData before Compile_id = 13 ------------------------ {method} - this oop: 0x0000fffca8101560 - method holder: 'compiler/c2/aarch64/TestVolatileStore' - constants: 0x0000fffca8101040 constant pool [51] {0x0000fffca8101040} for 'compiler/c2/aarch64/TestVolatileStore' cache=0x0000fffca81015c8 - access: 0x81000001 public - name: 'testObj' - signature: '(Ljava/lang/Integer;)V' - max stack: 3 - max locals: 2 - size of params: 2 - method size: 13 - vtable index: 6 - i2i entry: 0x0000fffca9798f00 - adapters: AHE@0x0000fffcb4223410: 0xbb000000 i2c: 0x0000fffca97b9fc0 c2i: 0x0000fffca97ba00c c2iUV: 0x0000fffca97b9fd4 c2iNCI: 0x0000fffca97ba048 - compiled entry 0x0000fffca97ba00c - code size: 6 - code start: 0x0000fffca8101550 - code end (excl): 0x0000fffca8101556 - checked ex length: 0 - linenumber start: 0x0000fffca8101556 - localvar length: 0 ------------------------ OptoAssembly for Compile_id = 13 ----------------------- # # void ( compiler/c2/aarch64/TestVolatileStore:NotNull *, java/lang/Integer:exact * ) # #r020 c_rarg1:c_rarg1 : parm 0: compiler/c2/aarch64/TestVolatileStore:NotNull * #r022 c_rarg2:c_rarg2 : parm 1: java/lang/Integer:exact * # -- Old sp -- Framesize: 32 -- #r351 sp+28: in_preserve #r350 sp+24: return address #r349 sp+20: in_preserve #r348 sp+16: saved fp register #r347 sp+12: pad2, stack alignment #r346 sp+ 8: pad2, stack alignment #r345 sp+ 4: Fixed slot 1 #r344 sp+ 0: Fixed slot 0 # 000 N29: # out( B1 ) <- BLOCK HEAD IS JUNK Freq: 1 000 # MachUEPNode ldrw rscratch1, j_rarg0 + oopDesc::klass_offset_in_bytes()] # compressed klass cmp r0, rscratch1 # Inline cache check bne, SharedRuntime::_ic_miss_stub nop # 2 bytes pad for loops and calls 020 B1: # out( N29 ) <- BLOCK HEAD IS JUNK Freq: 1 020 # stack bang size=32 sub sp, sp, #32 stp rfp, lr, [sp, #16] 050 membar_release (elided) 050 + encode_heap_oop R12, R2 054 add R10, R1, #16 # ptr 058 stlrw R12, [R10] # compressed ptr ! Field: volatile compiler/c2/aarch64/TestVolatileStore.f_obj 05c + lsr R10, p2x(R1), (#9 & 0x3f) 060 + adr R11, 0x0000fffcb5780000 # Byte Map Base 068 + strb rscractch2, R11, R10 # byte 06c + membar_volatile (elided) 06c + # pop frame 32 ldp lr, rfp, [sp,#16] add sp, sp, #32 # test polling word ldr rscratch1, [rthread],#288 cmp sp, rscratch1 bhi #slow_path 080 + ret // return register -------------------------------------------------------------------------------- ============================= C2-compiled nmethod ============================== ----------------------- MetaData before Compile_id = 12 ------------------------ {method} - this oop: 0x0000fffca81014b8 - method holder: 'compiler/c2/aarch64/TestVolatileStore' - constants: 0x0000fffca8101040 constant pool [51] {0x0000fffca8101040} for 'compiler/c2/aarch64/TestVolatileStore' cache=0x0000fffca81015c8 - access: 0x81000001 public - name: 'testInt' - signature: '(I)V' - max stack: 3 - max locals: 2 - size of params: 2 - method size: 13 - vtable index: 5 - i2i entry: 0x0000fffca9798f00 - adapters: AHE@0x0000fffcb4223578: 0xba000000 i2c: 0x0000fffca97b90c0 c2i: 0x0000fffca97b910c c2iUV: 0x0000fffca97b90d4 c2iNCI: 0x0000fffca97b9148 - compiled entry 0x0000fffca97b910c - code size: 6 - code start: 0x0000fffca81014a8 - code end (excl): 0x0000fffca81014ae - checked ex length: 0 - linenumber start: 0x0000fffca81014ae - localvar length: 0 ------------------------ OptoAssembly for Compile_id = 12 ----------------------- # # void ( compiler/c2/aarch64/TestVolatileStore:NotNull *, int ) # #r020 c_rarg1:c_rarg1 : parm 0: compiler/c2/aarch64/TestVolatileStore:NotNull * #r022 c_rarg2 : parm 1: int # -- Old sp -- Framesize: 32 -- #r351 sp+28: in_preserve #r350 sp+24: return address #r349 sp+20: in_preserve #r348 sp+16: saved fp register #r347 sp+12: pad2, stack alignment #r346 sp+ 8: pad2, stack alignment #r345 sp+ 4: Fixed slot 1 #r344 sp+ 0: Fixed slot 0 # 000 N24: # out( B1 ) <- BLOCK HEAD IS JUNK Freq: 1 000 # MachUEPNode ldrw rscratch1, j_rarg0 + oopDesc::klass_offset_in_bytes()] # compressed klass cmp r0, rscratch1 # Inline cache check bne, SharedRuntime::_ic_miss_stub nop # 2 bytes pad for loops and calls 020 B1: # out( N24 ) <- BLOCK HEAD IS JUNK Freq: 1 020 # stack bang size=32 sub sp, sp, #32 stp rfp, lr, [sp, #16] 050 membar_release (elided) 050 + add R10, R1, #12 # ptr 054 stlrw R2, [R10] # int ! Field: volatile compiler/c2/aarch64/TestVolatileStore.f_int 058 + membar_volatile (elided) 058 + # pop frame 32 ldp lr, rfp, [sp,#16] add sp, sp, #32 # test polling word ldr rscratch1, [rthread],#288 cmp sp, rscratch1 bhi #slow_path 06c + ret // return register --------------------------------------------------------------------------------

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              kvn Vladimir Kozlov
              Reporter:
              dcubed Daniel Daugherty
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: