RFR: 8255245: C1: Fix output of -XX:+PrintCFGToFile to open it with visualizer [v2]

Christian Hagedorn chagedorn at openjdk.java.net
Mon Oct 26 12:46:22 UTC 2020


> [JDK-8251093](https://bugs.openjdk.java.net/browse/JDK-8251093) introduced some improved logging for intervals. When specifying `-XX:+PrintCFGToFile` to dump the graph to a file to later open it with the C1 visualizer, it also uses the improved interval printing. However, this output can no longer be read by the C1 Visualizer. As the C1 Visualizer is not part of the JDK, we should include the old format again for the output produced by `-XX:+PrintCFGToFile` to be compatible with the visualizer again. The console output can still use the improved logging of JDK-8251093.

Christian Hagedorn has updated the pull request incrementally with one additional commit since the last revision:

  Move print_on definition to header file

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

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/837/files
  - new: https://git.openjdk.java.net/jdk/pull/837/files/695be546..d4d0e5ef

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=837&range=01
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=837&range=00-01

  Stats: 7 lines in 2 files changed: 2 ins; 4 del; 1 mod
  Patch: https://git.openjdk.java.net/jdk/pull/837.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/837/head:pull/837

PR: https://git.openjdk.java.net/jdk/pull/837


More information about the hotspot-compiler-dev mailing list