RFR: 8371944: AOT configuration is corrupted when app closes System.out
Ioi Lam
iklam at openjdk.org
Tue Nov 18 15:52:44 UTC 2025
On Tue, 18 Nov 2025 12:20:40 GMT, Johan Sjölen <jsjolen at openjdk.org> wrote:
> > This would change the behavior of the past 25 years, where System.out.close() has meant "this current process should no longer write to the stdout out". This applies to Java code, JVM, and JNI code.
>
> Sorry, I am confused. I thought that this did not apply to Linux, so for 25 years the meaning has differed between Windows and Linux?
What you quoted above applies to both Windows and Linux. tty output will no longer appear on stdout (to the console or any redirected file).
The long standing bug on Windows is that tty output may mysteriously go to *other* files or even sockets. This part doesn't happen on Linux.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/28335#issuecomment-3548318520
More information about the hotspot-runtime-dev
mailing list