RFR: 8193513: add support for printing a stack trace on class loading [v7]
Doug Simon
dnsimon at openjdk.org
Fri Jul 7 15:30:04 UTC 2023
On Fri, 7 Jul 2023 14:53:50 GMT, Ioi Lam <iklam at openjdk.org> wrote:
>> Doug Simon has refreshed the contents of this pull request, and previous commits have been removed. The incremental views will show differences compared to the previous content of the PR. The pull request contains one new commit since the last revision:
>>
>> use OS specific native stack printing in class load cause native stack logging
>
> src/hotspot/share/oops/instanceKlass.cpp line 3749:
>
>> 3747:
>> 3748: print_class_load_cause_logging();
>> 3749:
>
> This prints the stacks before printing the name of the class. I think the name should be printed first.
Not sure what you mean. The `class+load+cause` log output includes the name before the stack. See the updated examples in this PR's description.
If you mean `class+load+cause` log output precedes `class+load` log output, then yes, that is the case and it's intentional to keep these logging features independent of each other as David suggested (https://github.com/openjdk/jdk/pull/14553#discussion_r1249847278). Since they are independent, it should not matter which output comes first.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/14553#discussion_r1256006266
More information about the hotspot-dev
mailing list