On Fri, 29 Jul 2022 16:49:36 GMT, Roger Riggs <[email protected]> wrote:
> The test java/lang/ProcessBuilder/PipelineLeaksFD.java fails intermittently,
> usually associated with fastdebug and -Xcomp.
> It reports extra file descriptors are open that not expected.
> The test of pipelines did not explicitly use or close the stderr streams of
> each stream except the last.
> The intermittent nature of the failure is due to the non-deterministic GC
> interactions that close the streams when they become un-referenced.
>
> The solution in this case is to redirect the error stream to the stdout
> stream for each pipeline stage except the last.
>
> The test is removed from the ProblemList-Xcomp.
Marked as reviewed by naoto (Reviewer).
test/jdk/java/lang/ProcessBuilder/PipelineLeaksFD.java line 75:
> 73: for (int i = 0; i < builders.size() - 1; i++) {
> 74: builders.get(i).redirectErrorStream(true);
> 75: }
This loop could be removed by doing redirects in the data provider.
-------------
PR: https://git.openjdk.org/jdk/pull/9687