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

Test TestEnableJVMCIProduct.java run with virtual thread intermittent fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 24
    • 21, 24
    • hotspot
    • b26
    • aarch64
    • linux

        Test compiler/jvmci/TestEnableJVMCIProduct.java intermittent fails when run with virtual thread. Failure probability about 20/10k.

        The test log snippet:

        jvmci.CompilerCannot use JVMCI compiler: JVMCI compiler 'graal' specified by jvmci.Compiler not found
        Cannot use JVMCI compiler: JVMCI compiler 'graal' specified by jvmci.Compiler not found

        java.lang.RuntimeException: 'jvmci.Compiler=graal' missing from stdout/stderr
        at jdk.test.lib.process.OutputAnalyzer.shouldContain(OutputAnalyzer.java:253)
        at TestEnableJVMCIProduct.test(TestEnableJVMCIProduct.java:106)
        at TestEnableJVMCIProduct.main(TestEnableJVMCIProduct.java:71)

        Reproduce test command:
        export test=test/hotspot/jtreg/compiler/jvmci/TestEnableJVMCIProduct.java
        function runJtreg() { jtreg -J-Djavatest.maxOutputSize=999999999 -testThreadFactoryPath:$PWD/build/linux-`arch`-server-release/images/test/jtreg_test_thread_factory/jtregTestThreadFactory.jar -testThreadFactory:Virtual -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 | sed "s|#|_|"` ; rm -rf $dir ; mkdir -p $dir ; time seq 50000 | xargs -i -n 1 -P `nproc` bash -c "runJtreg {}" ; echo total fail number: `ls $dir/*.log 2> /dev/null | wc | awk '{print $1}'`

          1. 298.log
            78 kB
          2. jt-work.tar.xz
            107 kB

              dnsimon Douglas Simon
              syan Sendao Yan
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: