Problem with vmoptions versus javaoptions

David Holmes david.holmes at oracle.com
Tue Jun 26 01:01:50 UTC 2018


On 26/06/2018 9:50 AM, Jonathan Gibbons wrote:
> Thanks for adding the last line; it was important.
> 
> Yes, jtreg was trying to set up the command to get the custom property 
> definitions from the JVM under tests. This happens once, at the 
> beginning of the run.
> 
> I've not seen this "order of options" show up as a problem before.
> 
> In this case, the command line contains the following, in order,
> 
> 1. the options specified by `-vmoptions`
> 2. by the options specified by `-javaoptions`
> 3. any additional options needed for the module system
> 4. any options specified in the "extraPropDefns" entries in TEST.ROOT
> 
> Can you use that information to ensure that the command line gets set up 
> correctly?  At this point, I'm not sure if there is really a bug or not, 
> given Martin B's comment that this seemed to work for him. I would 
> strongly expect that if you put -XX:+UnlockExperimentalVMOptions early 
> in your -vmoptions you should be OK.

But I have it first:

-vmoptions:"-XX:+UnlockExperimentalVMOptions -XX:+UseJVMCICompiler -Xcomp"

It's when I change -vmoptions to -javaoptions that it breaks. Seems to 
me, based on the error message:

 >> -XX:+UseJVMCICompiler -Xcomp -XX:+UnlockExperimentalVMOptions;

that jtreg has reordered things somehow ??

Thanks,
David

> -- Jon
> 
> 
> 
> 
> 
> 
> On 06/25/2018 04:28 PM, David Holmes wrote:
>> Hi Jon,
>>
>> On 26/06/2018 2:58 AM, Jonathan Gibbons wrote:
>>> David,
>>>
>>> What info is available in the .jtr file regarding the command lines 
>>> that were constructed?
>>
>> Ah! We don't get that far:
>>
>> Error: VM option 'UseJVMCICompiler' is experimental and must be 
>> enabled via -XX:+UnlockExperimentalVMOptions.
>> Error: The unlock option must precede 'UseJVMCICompiler'.
>> Error: Could not create the Java Virtual Machine.
>> Error: A fatal exception has occurred. Program will exit.
>> Error: failed to get JDK properties for 
>> /export/users/dh198349/jdk-dev/open/test/hotspot/jtreg/../../../../build/linux-x64-debug/images/jdk/bin/java 
>> -XX:+UseJVMCICompiler -Xcomp -XX:+UnlockExperimentalVMOptions; exit 
>> code 1
>>
>> Sorry that last line was important.
>>
>> David
>>
>>> -- Jon
>>>
>>>
>>> On 6/24/18 4:32 PM, David Holmes wrote:
>>>> If I pass:
>>>>
>>>> -vmoptions:"-XX:+UnlockExperimentalVMOptions -XX:+UseJVMCICompiler 
>>>> -Xcomp"
>>>>
>>>> the tests run fine but take excruciatingly long as the compilations 
>>>> are also running in Xcomp mode. So I tried changing to -javaoptions 
>>>> and got:
>>>>
>>>> Error: VM option 'UseJVMCICompiler' is experimental and must be 
>>>> enabled via -XX:+UnlockExperimentalVMOptions.
>>>> Error: The unlock option must precede 'UseJVMCICompiler'.
>>>> Error: Could not create the Java Virtual Machine.
>>>> Error: A fatal exception has occurred. Program will exit.
>>>>
>>>> It's like the options were not being parsed and passed correctly.
>>>>
>>>> Any ideas?
>>>>
>>>> Thanks,
>>>> David
>>>
> 


More information about the jtreg-use mailing list