We now print native stacks in a number of contexts, not just VMError reporting, and we have to try os::platform_print_native_stack else fall back to VMError::print_native stack. That logic should be captured in a single function, suitably located, so that the different client code can use it.
There are some inconsistencies to watch for as we don't have "source info" support with os::platform_print_native_stack, and secondary error reporting seems to assume we must have used VMError::print_native_stack.
There are some inconsistencies to watch for as we don't have "source info" support with os::platform_print_native_stack, and secondary error reporting seems to assume we must have used VMError::print_native_stack.
- relates to
-
JDK-8295974 jni_FatalError and Xcheck:jni warnings should print the native stack when there are no Java frames
- Resolved
-
JDK-8311541 JavaThread::print_jni_stack doesn't support native stacks on all platforms
- Resolved
-
JDK-8193513 add support for printing a stack trace on class loading
- Resolved
- links to
-
Commit(master) openjdk/jdk/db9eab3f
-
Review(master) openjdk/jdk/22472