RFR: 8193513: add support for printing a stack trace on class loading [v2]
Doug Simon
dnsimon at openjdk.org
Thu Jun 29 20:55:55 UTC 2023
On Thu, 29 Jun 2023 02:38:38 GMT, Ioi Lam <iklam at openjdk.org> wrote:
>> More. You could even do -Xlog:class+load+cause+native to get the native stack. -Xlog:class+load+cause* to get native and Java stacks, and configure it to be compatible with logging rather than these character sequences you have above.
>
> `external_name()` needs a `ResourceMark`.
These are all good suggestions and feedback. I'll need some help wrt using UL macros. Firstly, how do I expand upon:
if (!log_is_enabled(Info, class, load)) {
return;
}
to also support `-Xlog:class+load+cause`, `-Xlog:class+load+cause+native` and `-Xlog:class+load+cause*`?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/14553#discussion_r1247165654
More information about the hotspot-dev
mailing list