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

jdk/jfr/event/gc/stacktrace/TestMetaspaceG1GCAllocationPendingStackTrace.java intermittently fail with -Xcomp -XX:TieredStopAtLevel=1

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4
    • None
    • 21
    • hotspot
    • None
    • jfr

    Description

      test command:

      export test=test/jdk/jdk/jfr/event/gc/stacktrace/TestMetaspaceG1GCAllocationPendingStackTrace.java
      function runJtreg() { jtreg -Xcomp -XX:TieredStopAtLevel=1 -ea -esa -timeoutFactor:4 -v:fail,error,time,nopass -nr -w $dir/index-$1 $test &> $dir/$1.log ; if [[ 0 -ne $? ]] ; then echo -n "$1 " ; else rm -rf $dir/index-$1 $dir/$1.log ; fi ; } ; export -f runJtreg ; export dir="tmp-jtreg-"`basename ${test##* } .java` ; rm -rf $dir ; mkdir -p $dir ; time seq 10 | xargs -i -n 1 -P `nproc` bash -c "runJtreg {}" ; echo total fail number: `ls $dir/*.log 2> /dev/null | wc | awk '{print $1}'`
      result:
      intermittently fail

      Attempt: 4 out of 5: no matching stack trace found.
      [6.696s][info][gc,marking ] GC(13) Concurrent Rebuild Remembered Sets and Scrub Regions 12.452ms
      [6.696s][info][gc,start ] GC(13) Pause Cleanup
      [6.696s][info][gc ] GC(13) Pause Cleanup 31M->31M(224M) 0.054ms
      [6.696s][info][gc,cpu ] GC(13) User=0.00s Sys=0.00s Real=0.00s
      [6.696s][info][gc,marking ] GC(13) Concurrent Clear Claimed Marks
      [6.697s][info][gc,marking ] GC(13) Concurrent Clear Claimed Marks 0.536ms
      [6.697s][info][gc,marking ] GC(13) Concurrent Cleanup for Next Mark
      [6.697s][info][gc,marking ] GC(13) Concurrent Cleanup for Next Mark 0.173ms
      [6.697s][info][gc ] GC(13) Concurrent Mark Cycle 49.585ms
      [6.888s][info][gc,heap,exit] Heap
      [6.888s][info][gc,heap,exit] garbage-first heap total 229376K, used 34346K [0x00000000a0000000, 0x0000000800000000)
      [6.888s][info][gc,heap,exit] region size 16384K, 2 young (32768K), 1 survivors (16384K)
      [6.888s][info][gc,heap,exit] Metaspace used 21642K, committed 29184K, reserved 131072K
      [6.888s][info][gc,heap,exit] class space used 2695K, committed 8640K, reserved 65536K
      STDERR:
      java.lang.AssertionError: No matching stack trace found
              at jdk.jfr.event.gc.stacktrace.AllocationStackTrace.testAllocEvent(AllocationStackTrace.java:350)
              at jdk.jfr.event.gc.stacktrace.AllocationStackTrace.testMetaspaceG1GCAllocEvent(AllocationStackTrace.java:299)
              at jdk.jfr.event.gc.stacktrace.TestMetaspaceG1GCAllocationPendingStackTrace.main(TestMetaspaceG1GCAllocationPendingStackTrace.java:37)
              at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
              at java.base/java.lang.reflect.Method.invoke(Method.java:580)
              at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
              at java.base/java.lang.Thread.run(Thread.java:1583)

      Attachments

        Activity

          People

            Unassigned Unassigned
            yyang Yi Yang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: