RFR: 8290885: java/lang/ProcessBuilder/PipelineLeaksFD.java fail: More or fewer pipes than expected

Roger Riggs rriggs at openjdk.org
Fri Jul 29 16:55:25 UTC 2022


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.

-------------

Commit messages:
 - Merge branch '8290885-Pipeline-leaks2' of https://github.com/RogerRiggs/jdk into 8290885-Pipeline-leaks2
 - 8290885: java/lang/ProcessBuilder/PipelineLeaksFD.java fails
 - 8290885: java/lang/ProcessBuilder/PipelineLeaksFD.java fail: More or fewer pipes than expected

Changes: https://git.openjdk.org/jdk/pull/9687/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=9687&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8290885
  Stats: 12 lines in 2 files changed: 7 ins; 2 del; 3 mod
  Patch: https://git.openjdk.org/jdk/pull/9687.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/9687/head:pull/9687

PR: https://git.openjdk.org/jdk/pull/9687


More information about the core-libs-dev mailing list