JDK-8219919 : RuntimeStub's name lost with PrintFrameConverterAssembly
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 8,11,12,13
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2019-02-28
  • Updated: 2020-08-28
  • Resolved: 2019-03-01
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 11 JDK 13 Other
11.0.5Fixed 13 b11Fixed openjdk8u272Fixed
Description
The RuntimeStub's name is lost when dumping C2's runtime stub with -XX:+PrintFrameConverterAssembly.
However, it do exist when dumping with -XX:+PrintStubCode.
It would be more friendly if the stub's name was dumped as well for JVM debuggers with -XX:+PrintFrameConverterAssembly.

It can be fixed by
---------------------------------------
diff -r 56089cf6152c src/hotspot/share/opto/output.cpp
--- a/src/hotspot/share/opto/output.cpp Tue Feb 26 05:46:02 2019 -0800
+++ b/src/hotspot/share/opto/output.cpp Thu Feb 28 19:52:40 2019 +0800
@@ -1556,6 +1556,8 @@
       }
       if (method() != NULL) {
         method()->print_metadata();
+      } else if (stub_name() != NULL) {
+        tty->print_cr("Generating RuntimeStub - %s", stub_name());
       }
       dump_asm(node_offsets, node_offset_limit);
       if (xtty != NULL) {
---------------------------------------
Comments
Fix Request (8u) This is a trivial diagnostics fix that improves debugging experience. Patch applies to 8u with reshuffling, passes tier1 tests.
19-08-2020

Fix Request (11u) This is a trivial diagnostics fix that improves debugging experience. Patch applies cleanly to 11u, passes tier1, tier2 tests. Risk is low.
27-06-2019

The mailing list: https://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/2019-February/032978.html
28-02-2019