[jdk11u-dev] RFR: 8139046: Compiler Control: IGVPrintLevel directive should set PrintIdealGraph

Martin Doerr mdoerr at openjdk.java.net
Mon May 23 08:31:08 UTC 2022


On Fri, 20 May 2022 12:56:12 GMT, Martin Doerr <mdoerr at openjdk.org> wrote:

> Backport of [JDK-8139046](https://bugs.openjdk.java.net/browse/JDK-8139046)
> Enables dumping of C2 intermediate representation for a selected method: `-XX:PrintIdealGraphFile=igv.xml -XX:CompileCommand=option,TestKlass::testMethod,intx,IGVPrintLevel,3`
> Doesn't apply cleanly:
> 
> - compile.hpp: Had to take `should_print` from https://github.com/openjdk/jdk/commit/75e9d0a2901c149fc0acf3ed042ddedc689d8d23
> - compilerDefinitions.cpp, compile.cpp, idealGraphPrinter.cpp, idealGraphPrinter.hpp: Had to do resolve hunks manually.

Thanks for the review! We want to use it for debugging C2 crashes. Some problems don't reproduce with later JDK releases. That's why we need this fix in 11u.

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

PR: https://git.openjdk.java.net/jdk11u-dev/pull/1102


More information about the jdk-updates-dev mailing list