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

Test runtime/Thread/ThreadCountLimit.java need loop increasing the limit

XMLWordPrintable

    • b09
    • generic
    • linux

        The test runtime/Thread/ThreadCountLimit.java#id0 was observed fails when run all the jtreg tests. Below is the test log snippet:

        Command line: [bash -c ulimit -u 4096 && /home/higon/workspace/jenkins/workspace/JDK_Daily_2/jdk17.jtreg_post/output/jdk/build/linux-x86_64-server-fastdebug/images/jdk/bin/java -cp /home/higon/workspace/jenkins/workspace/JDK_Daily_2/jdk17.jtreg_post/output/jdk/build/jt-work/jtreg/hotspot_jtreg/classes/115/runtime/Thread/ThreadCountLimit_id0.d:/home/higon/workspace/jenkins/workspace/JDK_Daily_2/jdk17.jtreg_post/output/jdk/test/hotspot/jtreg/runtime/Thread:/home/higon/workspace/jenkins/workspace/JDK_Daily_2/jdk17.jtreg_post/output/jdk/build/jt-work/jtreg/hotspot_jtreg/classes/115/test/lib:/home/higon/workspace/jenkins/workspace/JDK_Daily_2/jdk17.jtreg_post/output/jdk/test/lib:/home/higon/workspace/jenkins/workspace/JDK_Daily_2/jdk17.jtreg_post/output/jtreg/lib/javatest.jar:/home/higon/workspace/jenkins/workspace/JDK_Daily_2/jdk17.jtreg_post/output/jtreg/lib/jtreg.jar -ea -esa ThreadCountLimit dummy]
        [2025-07-18T10:58:45.356987870Z] Gathering output for process 3152342
        [2025-07-18T10:58:45.557051393Z] Waiting for completion for process 3152342
        [2025-07-18T10:58:45.557401573Z] Waiting for completion finished for process 3152342
        Output and diagnostic info for process 3152342 was saved into 'pid-3152342-output.log'
        [0.084s][warning][os,thread] Failed to start thread "GC Thread#0" - pthread_create failed (EAGAIN) for attributes: stacksize: 1024k, guardsize: 4k, detached.
        [0.085s][error ][gc,task ] Failed to create worker thread

        STDERR:
         stdout: [[0.084s][warning][os,thread] Failed to start thread "GC Thread#0" - pthread_create failed (EAGAIN) for attributes: stacksize: 1024k, guardsize: 4k, detached.
        [0.085s][error ][gc,task ] Failed to create worker thread
        ];
         stderr: []
         exitValue = 1

        java.lang.RuntimeException: Expected to get exit value of [0], exit value is: [1]
        at jdk.test.lib.process.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:522)
        at ThreadCountLimit.main(ThreadCountLimit.java:83)

              syan Sendao Yan
              syan Sendao Yan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: