RFR: 8193513: add support for printing a stack trace on class loading [v2]

David Holmes dholmes at openjdk.org
Fri Jun 30 01:11:54 UTC 2023


On Thu, 29 Jun 2023 20:53:10 GMT, Doug Simon <dnsimon at openjdk.org> wrote:

>> `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*`?

if (log_is_enabled(Info, class, load, cause)) {
  doStuff();
}

HTH

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/14553#discussion_r1247301104


More information about the hotspot-dev mailing list