[jdk17u-dev] RFR: 8307990: jspawnhelper must close its writing side of a pipe before reading from it
Aleksey Shipilev
shade at openjdk.org
Tue Dec 5 18:33:37 UTC 2023
On Tue, 5 Dec 2023 17:45:42 GMT, Volker Simonis <simonis at openjdk.org> wrote:
> Backporting the jspwanhelper fixes from [JDK-8307990](https://bugs.openjdk.org/browse/JDK-8307990) because we constantly see customers hitting this issue in production. For more details about the problem please refer to the corresponding release notes in https://bugs.openjdk.org/browse/JDK-8308297. The original change was pushed to JDK 21 in June so it had quite some time to mature.
>
> The backport was not clean because of some trivial copyright changes and because [JDK-8310265: (process) jspawnhelper should not use argv[0]](https://bugs.openjdk.org/browse/JDK-8310265), which was done after this change, already got backported to JDK 17u before this change.
>
> Once this backport will be reviewed and approved, I'll also plan to backport [JDK-8311645: Memory leak in jspawnhelper spawnChild after JDK-8307990](https://bugs.openjdk.org/browse/JDK-8311645) which was a follow-up fix of this change.
Seems the similar to the mainline patch: https://github.com/openjdk/jdk/commit/39f6d807dbbe0c9ecd72fe2f76bfbc3091b43c80
-------------
Marked as reviewed by shade (Reviewer).
PR Review: https://git.openjdk.org/jdk17u-dev/pull/2013#pullrequestreview-1765850811
More information about the jdk-updates-dev
mailing list