Integrated: 8316229: Enhance class initialization logging
David Holmes
dholmes at openjdk.org
Thu Sep 21 00:54:00 UTC 2023
On Tue, 19 Sep 2023 06:33:02 GMT, David Holmes <dholmes at openjdk.org> wrote:
> This change adds some additional debug logging to the class linking and initialization process. It was useful in diagnosing the deadlock described by:
>
> https://bugs.openjdk.org/browse/JDK-8316469
>
> See the example output in JBS issue.
>
> The changes are mostly uncontroversial but I needed to expose a way to access the init thread's name, which can't use the regular `name()` method as the safety check doesn't recognise the calling context as being safe.
>
> Testing:
> - manual examination of logging output
> - ran the only test that enables class+init logging: runtime/logging/ClassInitializationTest.java (no change as expected)
> - tiers1-3 sanity
>
> Thanks.
This pull request has now been integrated.
Changeset: 84124794
Author: David Holmes <dholmes at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/84124794c2ff70ba22cbfbf1ff01cf4d935896bd
Stats: 73 lines in 4 files changed: 69 ins; 1 del; 3 mod
8316229: Enhance class initialization logging
Reviewed-by: shade, coleenp
-------------
PR: https://git.openjdk.org/jdk/pull/15809
More information about the hotspot-dev
mailing list