RFR: 8267686: C2: PrintIdealGraphFile supports parameterization
Yong Zhou
yongzhou at openjdk.java.net
Wed May 26 13:08:24 UTC 2021
When analyzing C2 problems in jcstress[1], which starts multiple JVMs. If parsing %p%t is not supported, the file specified by PrintIdealGraphFile will be opened repeatedly.
Example
java -XX:-BackgroundCompilation -XX:-TieredCompilation -XX:CICompilerCount=1 -XX:PrintIdealGraphLevel=3 -XX:PrintIdealGraphFile=ideal-%p-%t.xml -XX:CompileCommand="print *jcstress::lambda$sanityCheck_Footprints$2" -jar jcstress.jar -c 64 -f 1 -iters 1 -t org.openjdk.jcstress.tests.locks.stamped.StampedLockPairwiseTests
Implemented by referring to `DumpLoadedClassList`
[1] https://mail.openjdk.java.net/pipermail/jdk8u-dev/2021-January/013278.html
-------------
Commit messages:
- 8267686: C2: PrintIdealGraphFile supports parameterization
Changes: https://git.openjdk.java.net/jdk/pull/4201/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=4201&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8267686
Stats: 6 lines in 1 file changed: 4 ins; 0 del; 2 mod
Patch: https://git.openjdk.java.net/jdk/pull/4201.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/4201/head:pull/4201
PR: https://git.openjdk.java.net/jdk/pull/4201
More information about the hotspot-compiler-dev
mailing list