RFR: 8274621: NullPointerException because listenAddress[0] is null
Serguei Spitsyn
sspitsyn at openjdk.java.net
Wed Oct 6 01:56:15 UTC 2021
On Tue, 5 Oct 2021 22:34:38 GMT, Alex Menkov <amenkov at openjdk.org> wrote:
> The change fixes ProcessTools.startProcess "warmup predicate" synchronization issue.
> Initially the predicate was called only for STDOUT;
> From jdk8 it's called for STDERR too (but ProcessTools javadoc was not updated).
> The fix keeps existing functionality as is (as we have this behavior for a long time and we have tests which expect STDERR output), but adds synchronization to avoid calling predicate after previous call returned "true".
> Also updated javadoc to reflect actual behavior.
Looks good.
Thanks,
Serguei
-------------
Marked as reviewed by sspitsyn (Reviewer).
PR: https://git.openjdk.java.net/jdk/pull/5830
More information about the serviceability-dev
mailing list