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

Improve CompileCommand flag

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 16
    • 16
    • hotspot
    • b27

      The current implementation of compile command has two types of options. Types pre-defined options like "compileonly" and the general 'option' type.

      'option'-type are not defined, they can accidentally be used with the wrong value type, and the syntax is error prone.

      By pre-defining all compile commands used and giving them types the parsing can be simplified, proper parsing errors can be given and and reasonable syntax can be used.

      This:
      -XX:CompileCommand=option,java/util/String.toString,int,RepeatCompilation,5

      Is superseded by:
      -XX:CompileCommand=RepeatCompilation,java/util/String.toString,5

      Attention check: Did you spot the error in the old command?

      In order not to break anything - the old syntax is kept for now. But even the old command format is improved with verification for the option name and the type of the value.



        There are no Sub-Tasks for this issue.

            neliasso Nils Eliasson (Inactive)
            neliasso Nils Eliasson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: