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

Doug Simon dnsimon at openjdk.org
Thu Jun 22 08:59:04 UTC 2023


On Thu, 22 Jun 2023 01:16:25 GMT, David Holmes <dholmes at openjdk.org> wrote:

>> See `JavaThread::print_jni_stack()`
>
> Of course we'd need to generalize `print_jni_stack` to take an `outputStream` parameter.

Ah, nice. I can indeed use the code in `print_jni_stack` to print the native stack. I propose making this configurable:

  product(ccstr, TraceClassLoadingCause, nullptr, DIAGNOSTIC,               \
          "Print a stack trace when loading a class whose fully"            \
          "qualified name contains this string ("*" matches "             \
          "any class). Append ":0" to print the Java stack (default), "   \
          "":1" to print the native stack and  ":2" to print "          \
          "both stacks.")                                                   \

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

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


More information about the hotspot-dev mailing list