JDK-8311541 : JavaThread::print_jni_stack doesn't support native stacks on all platforms
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 8u381,11.0.20,17.0.8,21,22
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2023-07-06
  • Updated: 2023-07-25
  • Resolved: 2023-07-18
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 22
22 b07Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Description
JDK-8295974 modified print_jni_stack to print the native stack when there are no Java frames. To do that it used VMError::print_native_stack, however that function is only for platforms that support stack-walking by following frames, on other platforms (i.e. Windows and AIX) we need to use os::platform_print_native_stack.
Comments
Changeset: c2f421b8 Author: David Holmes <dholmes@openjdk.org> Date: 2023-07-18 22:04:37 +0000 URL: https://git.openjdk.org/jdk/commit/c2f421b8bf920665e05bbbb56bc4d7f55430d5e1
18-07-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/14862 Date: 2023-07-13 07:41:00 +0000
13-07-2023

I'm keeping this change isolated from the cleanup to be done by JDK-8311542 so that it can easily be backported. Though note that the test changes to run on Windows also require JDK-8311609 and JDK-8311545.
13-07-2023