-
Bug
-
Resolution: Fixed
-
P5
-
19, 20
-
b16
When using a file commands.json with PrintIdealPhase:
[
{
match : "Test::*",
log : true,
PrintIdealPhase : "BEFORE_MATCHING"
}
]
together with other compile commands specified in compilerdirectives_common_flags and/or compilerdirectives_c2_flags, then the PrintIdealPhase option is ignored.
Example:
class Test {
public static void main(String[] args) {
for (int i = 0; i < 10000; i++) {
test();
}
}
public static void test() {}
}
Without additional compile command - prints ideal graph of phase AFTER_PARSING:
$ java -Xcomp -XX:-TieredCompilation -XX:CompileOnly=Test -XX:CompilerDirectivesFile=commands.json Test.java
With additional compile command - only prints inlining information but no ideal graph:
$ java -Xcomp -XX:-TieredCompilation -XX:CompileOnly=Test -XX:CompilerDirectivesFile=commands.json -XX:CompileCommand=PrintInlining,Test::*,true Test.java
[
{
match : "Test::*",
log : true,
PrintIdealPhase : "BEFORE_MATCHING"
}
]
together with other compile commands specified in compilerdirectives_common_flags and/or compilerdirectives_c2_flags, then the PrintIdealPhase option is ignored.
Example:
class Test {
public static void main(String[] args) {
for (int i = 0; i < 10000; i++) {
test();
}
}
public static void test() {}
}
Without additional compile command - prints ideal graph of phase AFTER_PARSING:
$ java -Xcomp -XX:-TieredCompilation -XX:CompileOnly=Test -XX:CompilerDirectivesFile=commands.json Test.java
With additional compile command - only prints inlining information but no ideal graph:
$ java -Xcomp -XX:-TieredCompilation -XX:CompileOnly=Test -XX:CompilerDirectivesFile=commands.json -XX:CompileCommand=PrintInlining,Test::*,true Test.java
- relates to
-
JDK-8281505 Add CompileCommand PrintIdealPhase
-
- Resolved
-