Integrated: JDK-8292351: tty should always live
Thomas Stuefe
stuefe at openjdk.org
Tue Aug 23 05:07:49 UTC 2022
On Mon, 15 Aug 2022 09:25:17 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:
> The default stream object tty is used in many places but its lifetime is limited. It gets born not-quite at the beginning of VM initialization and dies in DestroyVM. This leaves time windows before VM initialization and after VM cleanup where logging to tty crashes.
>
> This has been bugging me in the past, especially when wanting to use tty in code that runs very early (NMT preinit system, for example), and also causes problems for code that runs post-cleanup. Mostly this affects logging and error logging.
>
> tty should always be safe to write to, and that is trivial to do.
This pull request has now been integrated.
Changeset: a85a7234
Author: Thomas Stuefe <stuefe at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/a85a72341bd840b2c7b66ce32c8bbca920e519c8
Stats: 35 lines in 2 files changed: 28 ins; 1 del; 6 mod
8292351: tty should always live
Reviewed-by: clanger, coleenp, dholmes
-------------
PR: https://git.openjdk.org/jdk/pull/9874
More information about the hotspot-dev
mailing list