Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8293849

PrintIdealPhase in compiler directives file is ignored when used with other compile commands

XMLWordPrintable

    • 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

            chagedorn Christian Hagedorn
            chagedorn Christian Hagedorn
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: