From ramkri123 at gmail.com Mon Apr 17 21:18:31 2017 From: ramkri123 at gmail.com (Ram Krishnan) Date: Mon, 17 Apr 2017 14:18:31 -0700 Subject: trouble passing JVM startup options using JTREG Message-ID: 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? -------------- next part -------------- An HTML attachment was scrubbed... URL: From jonathan.gibbons at oracle.com Mon Apr 17 21:29:42 2017 From: jonathan.gibbons at oracle.com (Jonathan Gibbons) Date: Mon, 17 Apr 2017 14:29:42 -0700 Subject: trouble passing JVM startup options using JTREG In-Reply-To: References: Message-ID: <58F533C6.10507@oracle.com> 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.holmes at oracle.com Tue Apr 18 01:34:49 2017 From: david.holmes at oracle.com (David Holmes) Date: Tue, 18 Apr 2017 11:34:49 +1000 Subject: trouble passing JVM startup options using JTREG In-Reply-To: References: Message-ID: <3beae904-f275-ff4c-98ba-4532f5b678be@oracle.com> On 18/04/2017 7:18 AM, 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. Not sure how you are checking this but however you build the command-line in the test is how it gets executed. Try editing the test to use -Xlog:gc=debug and see what it outputs. David > 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? >