From bysanik at amazon.com Wed May 24 21:26:03 2017 From: bysanik at amazon.com (Bysani, Keerthana) Date: Wed, 24 May 2017 21:26:03 +0000 Subject: Jtreg : Error: failed to get JDK properties Message-ID: <10486AD0-4ABA-462B-A3A3-7E659E856799@amazon.com> Hi, I was trying to execute some regression tests for OpenJDK9 using jtreg for a custom garbage collector. Following is the command I executed: $jtreg -agentvm -verbose:all -jdk:$JT_JAVA -w build/jtreg/work -r build/jtreg/report -javaoptions:"-XX:+UseRtGC -XX:-UseCompressedOops" hotspot/test/compiler/c2 Where RtGC is the custom GC. I get the following error: Error: failed to get JDK properties for /home/test/openjdk9/build/linux-x86_64-normal-server-slowdebug/images/jdk/bin/java -XX:+UseRtGC -XX:-UseCompressedOops; exit code 134 Has anyone encountered the same issue? The command works fine if I use SerialGC instead of RtGC. It is an issue with jtreg. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From bysanik at amazon.com Wed May 24 21:38:12 2017 From: bysanik at amazon.com (Bysani, Keerthana) Date: Wed, 24 May 2017 21:38:12 +0000 Subject: Jtreg: Difference between vmoptions and javaoptions Message-ID: <01CB41D9-DC12-49F7-B10A-DA4BA85FADBC@amazon.com> Hi, What is the main difference between vmoptions and javaoptions when we use jtreg? How can I specify which GC for Java to use while using jtreg to run the test suite in jdk/test? (I will be running a custom GC) Should I specify them as javaoptions or vmoptions? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.holmes at oracle.com Thu May 25 07:54:15 2017 From: david.holmes at oracle.com (David Holmes) Date: Thu, 25 May 2017 17:54:15 +1000 Subject: Jtreg : Error: failed to get JDK properties In-Reply-To: <10486AD0-4ABA-462B-A3A3-7E659E856799@amazon.com> References: <10486AD0-4ABA-462B-A3A3-7E659E856799@amazon.com> Message-ID: Hi, On 25/05/2017 7:26 AM, Bysani, Keerthana wrote: > Hi, > > I was trying to execute some regression tests for OpenJDK9 using jtreg > for a custom garbage collector. > > Following is the command I executed: > > $jtreg -agentvm -verbose:all -jdk:$JT_JAVA -w build/jtreg/work -r > build/jtreg/report -javaoptions:"-XX:+UseRtGC -XX:-UseCompressedOops" > hotspot/test/compiler/c2 Can you successfully run: java -XX:+UseRtGC -XX:-UseCompressedOops -version Can you run a program that gets and prints the system properties? The error suggests the VM is failing to run. David ----- > Where RtGC is the custom GC. > > I get the following error: > > Error: failed to get JDK properties for > /home/test/openjdk9/build/linux-x86_64-normal-server-slowdebug/images/jdk/bin/java > -XX:+UseRtGC -XX:-UseCompressedOops; exit code 134 > > Has anyone encountered the same issue? > > The command works fine if I use SerialGC instead of RtGC. > > It is an issue with jtreg. > > Thanks > From david.holmes at oracle.com Thu May 25 07:57:05 2017 From: david.holmes at oracle.com (David Holmes) Date: Thu, 25 May 2017 17:57:05 +1000 Subject: Jtreg: Difference between vmoptions and javaoptions In-Reply-To: <01CB41D9-DC12-49F7-B10A-DA4BA85FADBC@amazon.com> References: <01CB41D9-DC12-49F7-B10A-DA4BA85FADBC@amazon.com> Message-ID: <8021c365-10e8-a66b-61cd-5b262ab37bf1@oracle.com> Hi, On 25/05/2017 7:38 AM, Bysani, Keerthana wrote: > Hi, > > What is the main difference between vmoptions and javaoptions when we > use jtreg? As per the help text: -javaoption: