[jdk17u-dev] Integrated: 8295974: jni_FatalError and Xcheck:jni warnings should print the native stack when there are no Java frames

Martin Doerr mdoerr at openjdk.org
Tue May 16 13:31:58 UTC 2023


On Sat, 6 May 2023 20:58:02 GMT, Martin Doerr <mdoerr at openjdk.org> wrote:

> Oracle backported this helpful feature: [JDK-8295974](https://bugs.openjdk.org/browse/JDK-8295974). We should have it, too.
> 
> The original change doesn't apply cleanly:
> Manual integration of JtregNativeHotspot.gmk and vmError.hpp was easy.
> JavaThread files don't exist in 17u. I had to integrate into thread.hpp/cpp and take JavaThread::print_jni_stack() from upstream. I have removed the Loom/vthread related parts. Also removed the print_source_info and max stack parameters for print_native_stack which aren't used in 17u.
> Added the required parts of [JDK-8292674](https://bugs.openjdk.org/browse/JDK-8292674) in 2nd commit. That one is not backported because it contains code for Loom.

This pull request has now been integrated.

Changeset: e7bac423
Author:    Martin Doerr <mdoerr at openjdk.org>
URL:       https://git.openjdk.org/jdk17u-dev/commit/e7bac4235a64a187da1835b4fa903fdc69a03034
Stats:     238 lines in 9 files changed: 226 ins; 6 del; 6 mod

8295974: jni_FatalError and Xcheck:jni warnings should print the native stack when there are no Java frames

Reviewed-by: rrich
Backport-of: 375743336dc15f9f945a03422eaa7ff773622cd8

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

PR: https://git.openjdk.org/jdk17u-dev/pull/1328


More information about the jdk-updates-dev mailing list