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

test/hotspot/jtreg/vmTestbase/vm/mlvm/meth/stress/jni/nativeAndMH/Test.java crash with small heap (-Xmx50m)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 18
    • Fix Version/s: 18
    • Component/s: hotspot
    • Subcomponent:
    • Resolved In Build:
      b05
    • CPU:
      generic
    • OS:
      generic

      Description

      Submit this test bug on hehalf of miao zheng.

      Correct expected behavior should be exit with OutOfMemory error message.

      jtreg -othervm -nativepath:/data/tmp/jdk/test/hotspot/jtreg/vmTestbase/vm/mlvm/meth/stress/jni/nativeAndMH -jdk:/data/tmp/jdk/build/linux-x86_64-server-release/images/jdk/ -vmoptions:"-XX:+UnlockExperimentalVMOptions -XX:+UseZGC -Xmx50M" ./test/hotspot/jtreg/vmTestbase/vm/mlvm/meth/stress/jni/nativeAndMH/Test.java

      Current thread (0x00007f2f24158a00): JavaThread "Thread-164" [_thread_in_vm, id=12083, stack(0x00007f2e786c7000,0x00007f2e787c8000)]

      Stack: [0x00007f2e786c7000,0x00007f2e787c8000], sp=0x00007f2e787c65e0, free space=1021k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x293c04] AccessInternal::PostRuntimeDispatch<ZBarrierSet::AccessBarrier<548932ul, ZBarrierSet>, (AccessInternal::BarrierType)2, 548932ul>::oop_access_barrier(void*)+0x14
      V [libjvm.so+0x8fbcc9] jni_SetObjectArrayElement+0x3a9
      C [libnativeAndMH.so+0x3196] JNIEnv_::SetObjectArrayElement(_jobjectArray*, int, _jobject*)+0x36
      C [libnativeAndMH.so+0x2c74] Java_vm_mlvm_meth_stress_jni_nativeAndMH_Test_native01+0x29d
      J 591 vm.mlvm.meth.stress.jni.nativeAndMH.Test.native01(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/invoke/MethodHandle;)Ljava/lang/Object; (0 bytes) @ 0x00007f3184fb3eb6 [0x00007f3184fb3d40+0x0000000000000176]
      j vm.mlvm.meth.stress.jni.nativeAndMH.Test.runThread(I)Z+83
      j vm.mlvm.share.MultiThreadedTest.lambda$run$1(Ljava/util/concurrent/CyclicBarrier;I)V+9
      j vm.mlvm.share.MultiThreadedTest$$Lambda$13+0x0000000800c0dc00.run()V+12
      j java.lang.Thread.run()V+11 java.base@18-internal
      v ~StubRoutines::call_stub
      V [libjvm.so+0x859c64] JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, JavaThread*)+0x334
      V [libjvm.so+0x85b74c] JavaCalls::call_virtual(JavaValue*, Handle, Klass*, Symbol*, Symbol*, JavaThread*)+0x20c
      V [libjvm.so+0x91ba30] thread_entry(JavaThread*, JavaThread*)+0x70
      V [libjvm.so+0xf13ce0] JavaThread::thread_main_inner()+0x180
      V [libjvm.so+0xf17222] Thread::call_run()+0xe2
      V [libjvm.so+0xc51751] thread_native_entry(Thread*)+0xe1

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              hshi Hui Shi
              Reporter:
              hshi Hui Shi
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: