RFR(S): 8027829: CompileCommand does not accept all JLS-conformant class/method names

Vladimir Kozlov vladimir.kozlov at oracle.com
Mon Dec 15 22:25:41 UTC 2014


Looks good.

Thanks,
Vladimir

On 12/15/14 3:23 AM, Nils Eliasson wrote:
> I updated the webrev with suggestions and corrections from Albert, Dean,
> Doug and Vladimir.
>
> 1)  Removed 'this method' from the descriptions of the commands and
> instead clarified that the pattern defined a set of methods in the text
> 2) Removed some quotes from the examples. Quotes are a character allowed
> in the names and a part of the method patterns
> 3) Added a note about the .hotspot_compiler file
>
> webrev: http://cr.openjdk.java.net/~neliasso/8027829/webrev.07
> bug: https://bugs.openjdk.java.net/browse/JDK-8027829
>
> Thanks,
> Nils
>
> On 2014-12-12 11:08, Albert Noll wrote:
>> Some minor things:
>>
>> 518 // The characters allowed is based on the JVM specification.
>> I am not sure if this is a correct sentence, but I am not a native
>> speaker.
>> "The JVM specification defines the allowed characters" sounds more
>> correct to me.
>>
>> 519 // Some tokens disallowed in the JVMS have some meaning
>> 520 // when parsing so we need to include them here.
>>
>> Same here.
>> Maybe we could use:
>> "Tokens that are disallowed by the JVM specification can have a
>> meaning to the parser so we need to include them here..."
>>
>> // The parser do not enforce all rules of the JVMS - a successful parse
>> "The parser *does* not ....
>>
>> Best,
>> Albert
>>
>>
>> On 12/09/2014 10:37 PM, Vladimir Kozlov wrote:
>>> Missing "method" at the end:
>>>
>>> !   tty->print_cr("  exclude,<pattern>     - don't compile or inline
>>> this ");
>>>
>>> Also add that these commands can be listed in .hotspot_compiler file
>>> instead of command line.
>>>
>>> Otherwise looks good.
>>>
>>> Thanks,
>>> Vladimir
>>>
>>> On 11/25/14 5:12 AM, Nils Eliasson wrote:
>>>> Hi,
>>>>
>>>> I added an improved help text and included a format description that is
>>>> printed on parse error.
>>>>
>>>> webrev: http://cr.openjdk.java.net/~neliasso/8027829/webrev.04/
>>>>
>>>> Thanks!
>>>> Nils
>>>>
>>>> On 2014-11-24 15:01, Vladimir Ivanov wrote:
>>>>> Looks good.
>>>>>
>>>>> Best regards,
>>>>> Vladimir Ivanov
>>>>>
>>>>> On 11/24/14, 5:24 PM, Nils Eliasson wrote:
>>>>>> Hi Vladimir,
>>>>>>
>>>>>> You are absolutely correct. Of course it is the JVMS that should be
>>>>>> targeted.
>>>>>>
>>>>>> I have updated the change adding all characters that do not create
>>>>>> problem with the
>>>>>> command line parser or pattern matcher, and are allowed by the JVMS.
>>>>>>
>>>>>> Also fixed so that we can match the signature without requiring a
>>>>>> whitespace before.
>>>>>>
>>>>>> Webrev: http://cr.openjdk.java.net/~neliasso/8027829/webrev.02
>>>>>>
>>>>>> Thanks,
>>>>>> //Nils
>>>>>>
>>>>>> On 2014-11-21 16:30, Vladimir Ivanov wrote:
>>>>>>> Nils,
>>>>>>>
>>>>>>> 2 typos: Charachter.isJavaIdentiferPart
>>>>>>>
>>>>>>> Are there any plans to extend this further past JLS?
>>>>>>> JVMS allows arbitrary UTF8 string to be used as a class/method/field
>>>>>>> name and some JVM languages use that.
>>>>>>>
>>>>>>> Best regards,
>>>>>>> Vladimir Ivanov
>>>>>>>
>>>>>>> On 11/21/14, 8:02 PM, Nils Eliasson wrote:
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> Please review this patch.
>>>>>>>>
>>>>>>>> It includes two fixes:
>>>>>>>>
>>>>>>>> 1) Improve CompileCommand so that it now accepts all JLS conformant
>>>>>>>> class and method names. (With one exception - \u0000 can not be
>>>>>>>> used
>>>>>>>> since the commandline parsing uses null terminated strings.) For
>>>>>>>> parsing
>>>>>>>> simplicity it is possible in some case to specify a pattern that is
>>>>>>>> not
>>>>>>>> JLS-conformant. That is however not a problem - the pattern will be
>>>>>>>> saved as a symbol and will simply never match any allowed name.
>>>>>>>>
>>>>>>>> 2) Fixed some output to make it more understandable. The user is
>>>>>>>> specifying the flag "CompileCommand" and any output should be
>>>>>>>> annotated
>>>>>>>> with the flag name, and not "CompilerOracle". Also added more
>>>>>>>> describing
>>>>>>>> error messages.
>>>>>>>>
>>>>>>>> Bug: https://bugs.openjdk.java.net/browse/JDK-8027829
>>>>>>>> Webrev: http://cr.openjdk.java.net/~neliasso/8027829/webrev.01/
>>>>>>>>
>>>>>>>> Regards,
>>>>>>>> Nils Eliasson
>>>>>>
>>>>
>>
>


More information about the hotspot-compiler-dev mailing list