RFR: 8161208: Unable to run jtreg tests with MinimalVM

Michail Chernov michail.chernov at oracle.com
Wed Jul 20 08:21:12 UTC 2016


Hi David,

This is updated review with fixed style issues. Added your comment to 
VMProps.java.

http://cr.openjdk.java.net/~mchernov/8161208/webrev.02/

Thanks,
Michail

On 20.07.2016 05:08, David Holmes wrote:
> On 19/07/2016 11:35 PM, Michail Chernov wrote:
>> Hi David,
>> Thanks for your answer. I revised code that checks FlightRecorder
>> status. At my point of view better way is to use WhiteBox to get VM flag
>> value. This allows not to use additional dependencies for VMProps.
>>
>> Updated webrev:
>> http://cr.openjdk.java.net/~mchernov/8161208/webrev.01/
>
> That looks better to me. Only nit, our Java style uses "a == null" 
> rather than "null == a".
>
> You might also add a comment in VMProps.java:
>
>  /**
>   * The Class to be invoked by jtreg prior Test Suite execution to
>   * collect information about VM.
> + * Do not use any API's that may not be available in all target VMs.
>   * Properties set by this Class will be available in the @requires 
> expressions.
>   */
>
> to help avoid this in the future.
>
> Thanks,
> David
>
>> Tested locally on Open JDK build, and Oracle JDK (Linux x64 , Linux x86
>> - server and minimal VM).
>>
>> Thanks,
>> Michail
>>
>> On 15.07.2016 08:31, David Holmes wrote:
>>> Hi Michail,
>>>
>>> On 15/07/2016 2:21 AM, Michail Chernov wrote:
>>>> Hi,
>>>>
>>>> Could I have a reviews for this change, please?
>>>>
>>>> https://bugs.openjdk.java.net/browse/JDK-8161208
>>>> http://cr.openjdk.java.net/~mchernov/8161208/webrev.00/
>>>> http://cr.openjdk.java.net/~mchernov/8161208/webrev.hotspot.00/
>>>>
>>>> This issue is started since this fix:
>>>> http://mail.openjdk.java.net/pipermail/hotspot-gc-dev/2016-June/018319.html 
>>>>
>>>>
>>>
>>> I think I would have objected to the form of that fix - VMProps was
>>> only looking at information available via system properties.
>>>
>>>> This change fixes two issues:
>>>> 1. Avoiding of java.management usage with minimal VM (JTreg was 
>>>> started
>>>> with '-vmoptions:"-minimal"' and worked as expected).
>>>
>>> Okay.
>>>
>>>> 2. Adding appropriate modules for proper VMProps execution on non-full
>>>> JDK images (JTreg was tested with '-vmoptions:"-limitmods java.base"',
>>>> java.compact1, java.compact2 and so on - JTreg is started and works as
>>>> expected).
>>>
>>> Was that testing done with a full VM or the Minimal VM? On a full VM
>>> limited to compact1, compact2 or java.base, java.lang.management will
>>> not be present, but we will execute the query code in VMProps as it
>>> isn't the minimal VM.
>>>
>>> Thanks,
>>> David
>>>
>>>> Tested locally and via RBT/JPRT.
>>>>
>>>> Thanks
>>>> Michail
>>



More information about the hotspot-dev mailing list