trouble passing JVM startup options using JTREG

Jonathan Gibbons jonathan.gibbons at oracle.com
Tue Apr 18 00:31:18 UTC 2017


Ramki,

jtreg is not involved at that point in time. It has launched the test, 
and the test code is running.

When you say  "I have confirmed this through prints in the JVM code 
base.", are you sure you are checking the right JVM?  There are at least 
3 JVMs running at the same time in your setup: you have a JVM running 
jtreg; you have a JVM running the test, and the test is launching a JVM 
of its own through the ProcessTools library.

-- Jon

On 04/17/2017 05:09 PM, Ram Krishnan wrote:
> Hi Jenny,
>
> I tried what you suggested. Hotspot output indeed shows ​ConcGCThreads 
> as 1.
>
> The problem seems to be interaction with jtreg.
>
> Thanks,
> Ramki
>
> On Mon, Apr 17, 2017 at 4:49 PM, Jenny Zhang <yu.zhang at oracle.com 
> <mailto:yu.zhang at oracle.com>> wrote:
>
>     Ramki,
>
>     Can you do the following to be sure that hotspot did not take the
>     parameter?
>     java -XX:
>     ​​
>     ConcGCThreads=1 -XX:+PrintFlagsFinal
>
>     I am using jdk9b154, the output shows it changed the ConcGCThreads
>     to 1
>
>     Thanks
>     Jenny
>
>     On 4/17/2017 4:33 PM, Ram Krishnan wrote:
>>     Many thanks Jonathan for the immediate reply.
>>
>>     I am copying the hotspot gc team.
>>
>>     Hotspot gc team -- your help would be much appreciated on the
>>     topic below.
>>
>>     Thanks,
>>     Ramki
>>
>>     On Mon, Apr 17, 2017 at 2:29 PM, Jonathan Gibbons
>>     <jonathan.gibbons at oracle.com
>>     <mailto:jonathan.gibbons at oracle.com>> wrote:
>>
>>
>>
>>         On 04/17/2017 02:18 PM, Ram Krishnan wrote:
>>>         Hi,
>>>
>>>         I have been able to successfully run all the tests in
>>>         hotspot/test/gc/g1 using jtreg.
>>>
>>>         The only gotcha I am facing is that the JVM startup options
>>>         specified in process builder does not have any effect. I
>>>         have confirmed this through prints in the JVM code base.
>>>
>>>         For example,
>>>         ​/hotspot/test/gc/g1/​
>>>         TestEagerReclaimHumongousRegionsClearMarkBits.java modifies
>>>         the "-XX:ConcGCThreads=1", but inside the JVM code to value
>>>         of ConcGCThreads is still zero.
>>>
>>>         ​I am new to jtreg and openjdk and probably missing
>>>         something obvious. Your help would be much appreciated.
>>>
>>>         Thanks in advance,​
>>>         ​Ramki​
>>>
>>
>>         Ramki,
>>
>>         This does not look like an issue with jtreg, since the
>>         behavior you are apparently seeing is all within the test
>>         code and its libraries.
>>
>>         You might want to follow up with the Hotspot team, who would
>>         have more familiarity with these tests and the associated
>>         libraries.
>>
>>         -- Jon
>>
>>
>>
>>
>>     -- 
>>     Thanks,
>>     Ramki
>
>
>
>
> -- 
> Thanks,
> Ramki

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/hotspot-gc-dev/attachments/20170417/db40ef13/attachment.htm>


More information about the hotspot-gc-dev mailing list