JDK-8005055 : pass outputStream to more opto debug routines
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2012-12-14
  • Updated: 2013-06-26
  • Resolved: 2013-01-23
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 7 JDK 8 Other
7u40Fixed 8Fixed hs24Fixed
Description
We pass the outputStream to much more debug routines than openJDK does, as we write a lot more information to files e.g., in case of a crash.

I would like to contribute the changes that allow to pass the output stream to node->dump() and everything reachable from there.

This also fixes the usage of output stream in print_register_type() in oopMap.cpp and in MachNullCheckNode::format(), where a single print command still used tty.

Further we initialize _node_regs_max_index so that node_regs_max_index()  == 0 indicates that registers of a node can be accessed.  This is also useful in debug output.

http://cr.openjdk.java.net/~goetz/webrevs/webrev-os_in_nodeDump/

Best regards,
  Goetz.