RFR: JDK-8292351: tty should always live
David Holmes
dholmes at openjdk.org
Wed Aug 17 12:44:17 UTC 2022
On Tue, 16 Aug 2022 05:25:54 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:
> I only chose stdout to keep with the standard behavior of VM output.
And therein lies the problem of using stderr. How is this going to work with the flags that switch the VM output between stdout and stderr? Will it make any sense? And how it it going to be when the pre-init output goes to stderr, the regular goes to stdout, and then the termination goes to stderr again?
Really you are introducing a new logging destination only used pre-init and post-termination, but pretending it is the regular "tty" output when it isn't.
I think the better solution is to expand the usability window of the tty by deferring its shutdown as long as possible. There should be minimal stuff happening before argument processing so not really anything to "log" at that time.
-------------
PR: https://git.openjdk.org/jdk/pull/9874
More information about the hotspot-dev
mailing list