From francis.andre.kampbell at orange.fr Wed Dec 4 22:52:04 2013 From: francis.andre.kampbell at orange.fr (Francis ANDRE) Date: Thu, 05 Dec 2013 07:52:04 +0100 Subject: hotspot/test/gc/TestVerifyBeforeGCDuringStartup.java: java.lang.RuntimeException: Unrecognized option: -server -Xint Message-ID: <52A02294.8020301@orange.fr> Hi Jon Running the hotspot non regression test with jtreg, I got this java.lang.RuntimeException: Unrecognized option: -server -Xint -- see below -- with this command The problem is coming from the order of the test.vm.options. Using -J-Dtest.vm.opts='-Xint -server' instead of -J-Dtest.vm.opts='-server -Xint' \\. makes the test pass. Here the launch command: $JT_HOME/win32/bin/jtreg -dir:Z:/jdk/jdk7u-dev/hotspot/test -server -Xint -verbose:summary -conc:2 -a -ignore:quiet -timeoutFactor:5 -agentvm -testjdk:Z:/JDK/jdk7u-dev/hotspot/build/windows/jdk-windows-i586 compiler gc runtime sanity serviceability Francis Content of Z:\JDK\jdk7u-dev\hotspot\JTwork\gc\TestVerifyBeforeGCDuringStartup.jtr #Test Results (version 2) #Tue Dec 03 06:36:51 CET 2013 #-----testdescription----- $file=Z\:\\JDK\\jdk7u-dev\\hotspot\\test\\gc\\TestVerifyBeforeGCDuringStartup.java $root=Z\:\\JDK\\jdk7u-dev\\hotspot\\test keywords=bug8010463 gc library=/testlibrary run=ASSUMED_ACTION main TestVerifyBeforeGCDuringStartup\r\n source=TestVerifyBeforeGCDuringStartup.java title=Simple test run with -XX\:+VerifyBeforeGC -XX\:-UseTLAB to verify 8010463 #-----environment----- #-----testresult----- description=file\:/Z\:/JDK/jdk7u-dev/hotspot/test/gc/TestVerifyBeforeGCDuringStartup.java elapsed=468 0\:00\:00.468 end=Tue Dec 03 06\:36\:51 CET 2013 environment=regtest execStatus=Failed. Execution failed\: `main' threw exception\: java.lang.RuntimeException\: '[Verifying' missing from stdout/stderr\: [Error\: Could not create the Java Virtual Machine. Error\: A fatal exception has occurred. Program will exit. Unrecognized option\: -server -Xint ] hostname=idefix javatestOS=Windows XP 5.1 (x86) javatestVersion=4.4.1 jtregVersion=jtreg 4.1 dev b00 script=com.sun.javatest.regtest.RegressionScript sections=script_messages build compile main start=Tue Dec 03 06\:36\:51 CET 2013 test=gc/TestVerifyBeforeGCDuringStartup.java user.name=FrancisANDRE work=Z\:\\JDK\\jdk7u-dev\\hotspot\\JTwork\\gc #section:script_messages ----------messages:(5/223)*---------- JDK under test: (Z:\\JDK\\jdk7u-dev\\hotspot\\build\\windows\\jdk-windows-i586) java version "1.7.0_45" Java(TM) SE Runtime Environment (build 1.7.0_45-b18) OpenJDK Server VM (build 24.60-b03-internal, interpreted mode) #section:build ----------messages:(3/119)---------- command: build TestVerifyBeforeGCDuringStartup reason: Named class compiled on demand elapsed time (seconds): 0.406 result: Passed. Build successful #section:compile ----------messages:(3/203)*---------- command: compile -XDignore.symbol.file=true Z:\\JDK\\jdk7u-dev\\hotspot\\test\\gc\\TestVerifyBeforeGCDuringStartup.java reason: .class file out of date or does not exist elapsed time (seconds): 0.406 ----------rerun:(22/2460)*---------- 'PATH=C:\\cygwin\\usr\\local\\bin;C:\\cygwin\\bin;C:\\WINDOWS;C:\\WINDOWS\\system32;C:\\WINDOWS\\System32\\Wbem;C:\\Program Files\\Microsoft Visual Studio 10.0\\Common7\\IDE;C:\\Program Files\\Microsoft Visual Studio 10.0\\VC\\BIN;C:\\Program Files\\Microsoft Visual Studio 10.0\\Common7\\Tools;C:\\WINDOWS\\Microsoft.NET\\Framework\\v4.0.30319;C:\\Program Files\\Microsoft Visual Studio 10.0\\VC\\VCPackages;C:\\Program Files\\Microsoft SDKs\\Windows\\v7.0A\\bin\\NETFX 4.0 Tools;C:\\Program Files\\Microsoft SDKs\\Windows\\v7.0A\\bin;C:\\Program Files\\Apache Software Foundation\\apache-ant-1.8.4\\bin;C:\\Program Files\\Apache Software Foundation\\apache-maven-3.0.3\\bin' \\ SystemDrive=C: \\ 'SystemRoot=C:\\WINDOWS' \\ 'TEMP=C:\\cygwin\\tmp' \\ 'TMP=C:\\DOCUME~1\\FRANCI~1\\LOCALS~1\\Temp' \\ 'windir=C:\\WINDOWS' \\ 'Z:\\JDK\\jdk7u-dev\\hotspot\\build\\windows\\jdk-windows-i586\\bin\\javac' \\ -J-server \\ -J-Xint \\ -J-Dtest.vm.opts='-server -Xint' \\ -J-Dcompile.jdk='Z:\\JDK\\jdk7u-dev\\hotspot\\build\\windows\\jdk-windows-i586' \\ -J-Dtest.src.path='Z:\\JDK\\jdk7u-dev\\hotspot\\test\\gc;Z:\\JDK\\jdk7u-dev\\hotspot\\test\\testlibrary' \\ -J-Dtest.src='Z:\\JDK\\jdk7u-dev\\hotspot\\test\\gc' \\ -J-Dtest.tool.vm.opts='-J-server -J-Xint' \\ -J-Dtest.class.path='Z:\\JDK\\jdk7u-dev\\hotspot\\JTwork\\classes\\0\\gc;Z:\\JDK\\jdk7u-dev\\hotspot\\JTwork\\classes\\0\\testlibrary' \\ -J-Dtest.timeout.factor=5.0 \\ -J-Dtest.classes='Z:\\JDK\\jdk7u-dev\\hotspot\\JTwork\\classes\\0\\gc' \\ -J-Dtest.class.path.prefix='Z:\\JDK\\jdk7u-dev\\hotspot\\JTwork\\classes\\0\\gc;Z:\\JDK\\jdk7u-dev\\hotspot\\test\\gc;Z:\\JDK\\jdk7u-dev\\hotspot\\JTwork\\classes\\0\\testlibrary' \\ -J-Dtest.jdk='Z:\\JDK\\jdk7u-dev\\hotspot\\build\\windows\\jdk-windows-i586' \\ -J-Dtest.java.opts= \\ -J-Dtest.compiler.opts= \\ -d 'Z:\\JDK\\jdk7u-dev\\hotspot\\JTwork\\classes\\0\\gc' -classpath 'Z:\\JDK\\jdk7u-dev\\hotspot\\JTwork\\classes\\0\\gc;Z:\\JDK\\jdk7u-dev\\hotspot\\test\\gc;Z:\\JDK\\jdk7u-dev\\hotspot\\JTwork\\classes\\0\\testlibrary;Z:\\JDK\\jdk7u-dev\\hotspot\\build\\windows\\jdk-windows-i586\\lib\\tools.jar' -sourcepath 'Z:\\JDK\\jdk7u-dev\\hotspot\\test\\gc;Z:\\JDK\\jdk7u-dev\\hotspot\\test\\testlibrary' -XDignore.symbol.file=true 'Z:\\JDK\\jdk7u-dev\\hotspot\\test\\gc\\TestVerifyBeforeGCDuringStartup.java' result: Passed. Compilation successful #section:main ----------messages:(3/164)---------- command: main TestVerifyBeforeGCDuringStartup reason: Assumed action based on file name: run main TestVerifyBeforeGCDuringStartup elapsed time (seconds): 0.047 ----------rerun:(21/2176)*---------- 'PATH=C:\\cygwin\\usr\\local\\bin;C:\\cygwin\\bin;C:\\WINDOWS;C:\\WINDOWS\\system32;C:\\WINDOWS\\System32\\Wbem;C:\\Program Files\\Microsoft Visual Studio 10.0\\Common7\\IDE;C:\\Program Files\\Microsoft Visual Studio 10.0\\VC\\BIN;C:\\Program Files\\Microsoft Visual Studio 10.0\\Common7\\Tools;C:\\WINDOWS\\Microsoft.NET\\Framework\\v4.0.30319;C:\\Program Files\\Microsoft Visual Studio 10.0\\VC\\VCPackages;C:\\Program Files\\Microsoft SDKs\\Windows\\v7.0A\\bin\\NETFX 4.0 Tools;C:\\Program Files\\Microsoft SDKs\\Windows\\v7.0A\\bin;C:\\Program Files\\Apache Software Foundation\\apache-ant-1.8.4\\bin;C:\\Program Files\\Apache Software Foundation\\apache-maven-3.0.3\\bin' \\ SystemDrive=C: \\ 'SystemRoot=C:\\WINDOWS' \\ 'TEMP=C:\\cygwin\\tmp' \\ 'TMP=C:\\DOCUME~1\\FRANCI~1\\LOCALS~1\\Temp' \\ 'windir=C:\\WINDOWS' \\ 'Z:\\JDK\\jdk7u-dev\\hotspot\\build\\windows\\jdk-windows-i586\\bin\\java' \\ -Dtest.vm.opts='-server -Xint' \\ -Dcompile.jdk='Z:\\JDK\\jdk7u-dev\\hotspot\\build\\windows\\jdk-windows-i586' \\ -Dtest.src.path='Z:\\JDK\\jdk7u-dev\\hotspot\\test\\gc;Z:\\JDK\\jdk7u-dev\\hotspot\\test\\testlibrary' \\ -Dtest.src='Z:\\JDK\\jdk7u-dev\\hotspot\\test\\gc' \\ -Dtest.tool.vm.opts='-J-server -J-Xint' \\ -Dtest.class.path='Z:\\JDK\\jdk7u-dev\\hotspot\\JTwork\\classes\\0\\gc;Z:\\JDK\\jdk7u-dev\\hotspot\\JTwork\\classes\\0\\testlibrary' \\ -Dtest.timeout.factor=5.0 \\ -Dtest.classes='Z:\\JDK\\jdk7u-dev\\hotspot\\JTwork\\classes\\0\\gc' \\ -Dtest.class.path.prefix='Z:\\JDK\\jdk7u-dev\\hotspot\\JTwork\\classes\\0\\gc;Z:\\JDK\\jdk7u-dev\\hotspot\\test\\gc;Z:\\JDK\\jdk7u-dev\\hotspot\\JTwork\\classes\\0\\testlibrary' \\ -Dtest.jdk='Z:\\JDK\\jdk7u-dev\\hotspot\\build\\windows\\jdk-windows-i586' \\ -Dtest.java.opts= \\ -Dtest.compiler.opts= \\ -classpath 'Z:\\JDK\\jdk7u-dev\\hotspot\\JTwork\\classes\\0\\gc;Z:\\JDK\\jdk7u-dev\\hotspot\\test\\gc;Z:\\JDK\\jdk7u-dev\\hotspot\\JTwork\\classes\\0\\testlibrary;Z:\\JDK\\jdk7u-dev\\hotspot\\build\\windows\\jdk-windows-i586\\lib\\tools.jar' \\ TestVerifyBeforeGCDuringStartup ----------System.err:(17/915)---------- java.lang.RuntimeException: '[Verifying' missing from stdout/stderr: [Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. Unrecognized option: -server -Xint ] at com.oracle.java.testlibrary.OutputAnalyzer.shouldContain(OutputAnalyzer.java:79) at TestVerifyBeforeGCDuringStartup.main(TestVerifyBeforeGCDuringStartup.java:42) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:746) at java.lang.Thread.run(Thread.java:744) JavaTest Message: Test threw exception: java.lang.RuntimeException JavaTest Message: shutting down test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: '[Verifying' missing from stdout/stderr: [Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. Unrecognized option: -server -Xint ] test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: '[Verifying' missing from stdout/stderr: [Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. Unrecognized option: -server -Xint ] From francis.andre.kampbell at orange.fr Fri Dec 6 11:12:54 2013 From: francis.andre.kampbell at orange.fr (Francis ANDRE) Date: Fri, 06 Dec 2013 20:12:54 +0100 Subject: hotspot/test/gc/TestVerifyBeforeGCDuringStartup.java: java.lang.RuntimeException: Unrecognized option: -server -Xint In-Reply-To: <52A02294.8020301@orange.fr> References: <52A02294.8020301@orange.fr> Message-ID: <52A221B6.7030104@orange.fr> Hi Jon Ok mistake on my side, I have just to invert the options on the command line... but I think this kind of test is somewhat erroneous... Francis Le 05/12/2013 07:52, Francis ANDRE a ?crit : > Hi Jon > > Running the hotspot non regression test with jtreg, I got this > java.lang.RuntimeException: Unrecognized option: -server -Xint -- see below > -- with this command > > The problem is coming from the order of the test.vm.options. Using > -J-Dtest.vm.opts='-Xint -server' instead of -J-Dtest.vm.opts='-server -Xint' > \\. makes the test pass. > > > Here the launch command: > $JT_HOME/win32/bin/jtreg -dir:Z:/jdk/jdk7u-dev/hotspot/test -server -Xint > -verbose:summary -conc:2 -a -ignore:quiet -timeoutFactor:5 -agentvm > -testjdk:Z:/JDK/jdk7u-dev/hotspot/build/windows/jdk-windows-i586 compiler gc > runtime sanity serviceability > > > Francis > > Content of Z:\JDK\jdk7u-dev\hotspot\JTwork\gc\TestVerifyBeforeGCDuringStartup.jtr > > #Test Results (version 2) > #Tue Dec 03 06:36:51 CET 2013 > #-----testdescription----- > $file=Z\:\\JDK\\jdk7u-dev\\hotspot\\test\\gc\\TestVerifyBeforeGCDuringStartup.java > > $root=Z\:\\JDK\\jdk7u-dev\\hotspot\\test > keywords=bug8010463 gc > library=/testlibrary > run=ASSUMED_ACTION main TestVerifyBeforeGCDuringStartup\r\n > source=TestVerifyBeforeGCDuringStartup.java > title=Simple test run with -XX\:+VerifyBeforeGC -XX\:-UseTLAB to verify 8010463 > > #-----environment----- > > #-----testresult----- > description=file\:/Z\:/JDK/jdk7u-dev/hotspot/test/gc/TestVerifyBeforeGCDuringStartup.java > > elapsed=468 0\:00\:00.468 > end=Tue Dec 03 06\:36\:51 CET 2013 > environment=regtest > execStatus=Failed. Execution failed\: `main' threw exception\: > java.lang.RuntimeException\: '[Verifying' missing from stdout/stderr\: > [Error\: Could not create the Java Virtual Machine. Error\: A fatal exception > has occurred. Program will exit. Unrecognized option\: -server -Xint ] > hostname=idefix > javatestOS=Windows XP 5.1 (x86) > javatestVersion=4.4.1 > jtregVersion=jtreg 4.1 dev b00 > script=com.sun.javatest.regtest.RegressionScript > sections=script_messages build compile main > start=Tue Dec 03 06\:36\:51 CET 2013 > test=gc/TestVerifyBeforeGCDuringStartup.java > user.name=FrancisANDRE > work=Z\:\\JDK\\jdk7u-dev\\hotspot\\JTwork\\gc > > #section:script_messages > ----------messages:(5/223)*---------- > JDK under test: (Z:\\JDK\\jdk7u-dev\\hotspot\\build\\windows\\jdk-windows-i586) > java version "1.7.0_45" > Java(TM) SE Runtime Environment (build 1.7.0_45-b18) > OpenJDK Server VM (build 24.60-b03-internal, interpreted mode) > > > #section:build > ----------messages:(3/119)---------- > command: build TestVerifyBeforeGCDuringStartup > reason: Named class compiled on demand > elapsed time (seconds): 0.406 > result: Passed. Build successful > > #section:compile > ----------messages:(3/203)*---------- > command: compile -XDignore.symbol.file=true > Z:\\JDK\\jdk7u-dev\\hotspot\\test\\gc\\TestVerifyBeforeGCDuringStartup.java > reason: .class file out of date or does not exist > elapsed time (seconds): 0.406 > ----------rerun:(22/2460)*---------- > 'PATH=C:\\cygwin\\usr\\local\\bin;C:\\cygwin\\bin;C:\\WINDOWS;C:\\WINDOWS\\system32;C:\\WINDOWS\\System32\\Wbem;C:\\Program > Files\\Microsoft Visual Studio 10.0\\Common7\\IDE;C:\\Program Files\\Microsoft > Visual Studio 10.0\\VC\\BIN;C:\\Program Files\\Microsoft Visual Studio > 10.0\\Common7\\Tools;C:\\WINDOWS\\Microsoft.NET\\Framework\\v4.0.30319;C:\\Program > Files\\Microsoft Visual Studio 10.0\\VC\\VCPackages;C:\\Program > Files\\Microsoft SDKs\\Windows\\v7.0A\\bin\\NETFX 4.0 Tools;C:\\Program > Files\\Microsoft SDKs\\Windows\\v7.0A\\bin;C:\\Program Files\\Apache Software > Foundation\\apache-ant-1.8.4\\bin;C:\\Program Files\\Apache Software > Foundation\\apache-maven-3.0.3\\bin' \\ > SystemDrive=C: \\ > 'SystemRoot=C:\\WINDOWS' \\ > 'TEMP=C:\\cygwin\\tmp' \\ > 'TMP=C:\\DOCUME~1\\FRANCI~1\\LOCALS~1\\Temp' \\ > 'windir=C:\\WINDOWS' \\ > 'Z:\\JDK\\jdk7u-dev\\hotspot\\build\\windows\\jdk-windows-i586\\bin\\javac' \\ > -J-server \\ > -J-Xint \\ > -J-Dtest.vm.opts='-server -Xint' \\ > -J-Dcompile.jdk='Z:\\JDK\\jdk7u-dev\\hotspot\\build\\windows\\jdk-windows-i586' \\ > > -J-Dtest.src.path='Z:\\JDK\\jdk7u-dev\\hotspot\\test\\gc;Z:\\JDK\\jdk7u-dev\\hotspot\\test\\testlibrary' > \\ > -J-Dtest.src='Z:\\JDK\\jdk7u-dev\\hotspot\\test\\gc' \\ > -J-Dtest.tool.vm.opts='-J-server -J-Xint' \\ > -J-Dtest.class.path='Z:\\JDK\\jdk7u-dev\\hotspot\\JTwork\\classes\\0\\gc;Z:\\JDK\\jdk7u-dev\\hotspot\\JTwork\\classes\\0\\testlibrary' > \\ > -J-Dtest.timeout.factor=5.0 \\ > -J-Dtest.classes='Z:\\JDK\\jdk7u-dev\\hotspot\\JTwork\\classes\\0\\gc' \\ > -J-Dtest.class.path.prefix='Z:\\JDK\\jdk7u-dev\\hotspot\\JTwork\\classes\\0\\gc;Z:\\JDK\\jdk7u-dev\\hotspot\\test\\gc;Z:\\JDK\\jdk7u-dev\\hotspot\\JTwork\\classes\\0\\testlibrary' > \\ > -J-Dtest.jdk='Z:\\JDK\\jdk7u-dev\\hotspot\\build\\windows\\jdk-windows-i586' \\ > -J-Dtest.java.opts= \\ > -J-Dtest.compiler.opts= \\ > -d 'Z:\\JDK\\jdk7u-dev\\hotspot\\JTwork\\classes\\0\\gc' -classpath > 'Z:\\JDK\\jdk7u-dev\\hotspot\\JTwork\\classes\\0\\gc;Z:\\JDK\\jdk7u-dev\\hotspot\\test\\gc;Z:\\JDK\\jdk7u-dev\\hotspot\\JTwork\\classes\\0\\testlibrary;Z:\\JDK\\jdk7u-dev\\hotspot\\build\\windows\\jdk-windows-i586\\lib\\tools.jar' > -sourcepath > 'Z:\\JDK\\jdk7u-dev\\hotspot\\test\\gc;Z:\\JDK\\jdk7u-dev\\hotspot\\test\\testlibrary' > -XDignore.symbol.file=true > 'Z:\\JDK\\jdk7u-dev\\hotspot\\test\\gc\\TestVerifyBeforeGCDuringStartup.java' > result: Passed. Compilation successful > > #section:main > ----------messages:(3/164)---------- > command: main TestVerifyBeforeGCDuringStartup > reason: Assumed action based on file name: run main > TestVerifyBeforeGCDuringStartup > elapsed time (seconds): 0.047 > ----------rerun:(21/2176)*---------- > 'PATH=C:\\cygwin\\usr\\local\\bin;C:\\cygwin\\bin;C:\\WINDOWS;C:\\WINDOWS\\system32;C:\\WINDOWS\\System32\\Wbem;C:\\Program > Files\\Microsoft Visual Studio 10.0\\Common7\\IDE;C:\\Program Files\\Microsoft > Visual Studio 10.0\\VC\\BIN;C:\\Program Files\\Microsoft Visual Studio > 10.0\\Common7\\Tools;C:\\WINDOWS\\Microsoft.NET\\Framework\\v4.0.30319;C:\\Program > Files\\Microsoft Visual Studio 10.0\\VC\\VCPackages;C:\\Program > Files\\Microsoft SDKs\\Windows\\v7.0A\\bin\\NETFX 4.0 Tools;C:\\Program > Files\\Microsoft SDKs\\Windows\\v7.0A\\bin;C:\\Program Files\\Apache Software > Foundation\\apache-ant-1.8.4\\bin;C:\\Program Files\\Apache Software > Foundation\\apache-maven-3.0.3\\bin' \\ > SystemDrive=C: \\ > 'SystemRoot=C:\\WINDOWS' \\ > 'TEMP=C:\\cygwin\\tmp' \\ > 'TMP=C:\\DOCUME~1\\FRANCI~1\\LOCALS~1\\Temp' \\ > 'windir=C:\\WINDOWS' \\ > 'Z:\\JDK\\jdk7u-dev\\hotspot\\build\\windows\\jdk-windows-i586\\bin\\java' \\ > -Dtest.vm.opts='-server -Xint' \\ > -Dcompile.jdk='Z:\\JDK\\jdk7u-dev\\hotspot\\build\\windows\\jdk-windows-i586' \\ > -Dtest.src.path='Z:\\JDK\\jdk7u-dev\\hotspot\\test\\gc;Z:\\JDK\\jdk7u-dev\\hotspot\\test\\testlibrary' > \\ > -Dtest.src='Z:\\JDK\\jdk7u-dev\\hotspot\\test\\gc' \\ > -Dtest.tool.vm.opts='-J-server -J-Xint' \\ > -Dtest.class.path='Z:\\JDK\\jdk7u-dev\\hotspot\\JTwork\\classes\\0\\gc;Z:\\JDK\\jdk7u-dev\\hotspot\\JTwork\\classes\\0\\testlibrary' > \\ > -Dtest.timeout.factor=5.0 \\ > -Dtest.classes='Z:\\JDK\\jdk7u-dev\\hotspot\\JTwork\\classes\\0\\gc' \\ > -Dtest.class.path.prefix='Z:\\JDK\\jdk7u-dev\\hotspot\\JTwork\\classes\\0\\gc;Z:\\JDK\\jdk7u-dev\\hotspot\\test\\gc;Z:\\JDK\\jdk7u-dev\\hotspot\\JTwork\\classes\\0\\testlibrary' > \\ > -Dtest.jdk='Z:\\JDK\\jdk7u-dev\\hotspot\\build\\windows\\jdk-windows-i586' \\ > -Dtest.java.opts= \\ > -Dtest.compiler.opts= \\ > -classpath > 'Z:\\JDK\\jdk7u-dev\\hotspot\\JTwork\\classes\\0\\gc;Z:\\JDK\\jdk7u-dev\\hotspot\\test\\gc;Z:\\JDK\\jdk7u-dev\\hotspot\\JTwork\\classes\\0\\testlibrary;Z:\\JDK\\jdk7u-dev\\hotspot\\build\\windows\\jdk-windows-i586\\lib\\tools.jar' > \\ > TestVerifyBeforeGCDuringStartup > ----------System.err:(17/915)---------- > java.lang.RuntimeException: '[Verifying' missing from stdout/stderr: [Error: > Could not create the Java Virtual Machine. > Error: A fatal exception has occurred. Program will exit. > Unrecognized option: -server -Xint > ] > > at > com.oracle.java.testlibrary.OutputAnalyzer.shouldContain(OutputAnalyzer.java:79) > at > TestVerifyBeforeGCDuringStartup.main(TestVerifyBeforeGCDuringStartup.java:42) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:746) > at java.lang.Thread.run(Thread.java:744) > > JavaTest Message: Test threw exception: java.lang.RuntimeException > JavaTest Message: shutting down test > > result: Failed. Execution failed: `main' threw exception: > java.lang.RuntimeException: '[Verifying' missing from stdout/stderr: [Error: > Could not create the Java Virtual Machine. Error: A fatal exception has > occurred. Program will exit. Unrecognized option: -server -Xint ] > > > test result: Failed. Execution failed: `main' threw exception: > java.lang.RuntimeException: '[Verifying' missing from stdout/stderr: [Error: > Could not create the Java Virtual Machine. Error: A fatal exception has > occurred. Program will exit. Unrecognized option: -server -Xint ] > > From jonathan.gibbons at oracle.com Fri Dec 6 13:31:34 2013 From: jonathan.gibbons at oracle.com (Jonathan Gibbons) Date: Fri, 06 Dec 2013 13:31:34 -0800 Subject: hotspot/test/gc/TestVerifyBeforeGCDuringStartup.java: java.lang.RuntimeException: Unrecognized option: -server -Xint In-Reply-To: <52A221B6.7030104@orange.fr> References: <52A02294.8020301@orange.fr> <52A221B6.7030104@orange.fr> Message-ID: <52A24236.3050007@oracle.com> Francis, This is a bug in the test in the version in jdk7u. The version in jdk8 has been fixed. [Note to self: make sure you read the right version of the files.] The clue is in the error message that indicates that "-server -Xint" is being treated a single command. Despite what you say, it is *not* a fix to reverse the options: that use makes the single option be "-Xint -server" and while it might make the problem go away, the code is still not doing what you probably expect. The bug is in line 37 of the source file for TestVerifyBeforeGCStartup > > ProcessTools.createJavaProcessBuilder(System.getProperty("test.vm.opts"), > "-XX:-UseTLAB", > "-XX:+UnlockDiagnosticVMOptions", > "-XX:+VerifyBeforeGC", > "-version"); The System.getProperty call will return a white-space separated list of options, which in this case will be passed as a single string to the createJavaProcessBuilder call, giving the effect you observed. The correct solution is to split the value of the system property into words, and to add each of the words individually into the list of words given to createJavaProcessBuilder. This fix has been done in the JDK 8 version of the test. I suggest you continue this issue on the hotspot-dev alias, and suggest that someone backport the appropriate fix. From "hg log" it looks like this is the changeset that needs to be backported. > changeset: 4586:3edf23423bb2 > user: johnc > date: Fri Apr 26 10:57:57 2013 -0700 > summary: 8011898: gc/TestVerifyBeforeGCDuringStartup.java: > java.lang.RuntimeException: '[Verifying' missing from stdout/stderr: > [Error: Could not find or load main class] -- Jon On 12/06/2013 11:12 AM, Francis ANDRE wrote: > Hi Jon > > Ok mistake on my side, I have just to invert the options on the > command line... but I think this kind of test is somewhat erroneous... > > Francis > Le 05/12/2013 07:52, Francis ANDRE a ?crit : >> Hi Jon >> >> Running the hotspot non regression test with jtreg, I got this >> java.lang.RuntimeException: Unrecognized option: -server -Xint -- see >> below -- with this command >> >> The problem is coming from the order of the test.vm.options. Using >> -J-Dtest.vm.opts='-Xint -server' instead of >> -J-Dtest.vm.opts='-server -Xint' \\. makes the test pass. >> >> >> Here the launch command: >> $JT_HOME/win32/bin/jtreg -dir:Z:/jdk/jdk7u-dev/hotspot/test -server >> -Xint -verbose:summary -conc:2 -a -ignore:quiet -timeoutFactor:5 >> -agentvm >> -testjdk:Z:/JDK/jdk7u-dev/hotspot/build/windows/jdk-windows-i586 >> compiler gc runtime sanity serviceability >> >> >> Francis >> >> Content of >> Z:\JDK\jdk7u-dev\hotspot\JTwork\gc\TestVerifyBeforeGCDuringStartup.jtr >> >> #Test Results (version 2) >> #Tue Dec 03 06:36:51 CET 2013 >> #-----testdescription----- >> $file=Z\:\\JDK\\jdk7u-dev\\hotspot\\test\\gc\\TestVerifyBeforeGCDuringStartup.java >> >> $root=Z\:\\JDK\\jdk7u-dev\\hotspot\\test >> keywords=bug8010463 gc >> library=/testlibrary >> run=ASSUMED_ACTION main TestVerifyBeforeGCDuringStartup\r\n >> source=TestVerifyBeforeGCDuringStartup.java >> title=Simple test run with -XX\:+VerifyBeforeGC -XX\:-UseTLAB to >> verify 8010463 >> >> #-----environment----- >> >> #-----testresult----- >> description=file\:/Z\:/JDK/jdk7u-dev/hotspot/test/gc/TestVerifyBeforeGCDuringStartup.java >> >> elapsed=468 0\:00\:00.468 >> end=Tue Dec 03 06\:36\:51 CET 2013 >> environment=regtest >> execStatus=Failed. Execution failed\: `main' threw exception\: >> java.lang.RuntimeException\: '[Verifying' missing from >> stdout/stderr\: [Error\: Could not create the Java Virtual Machine. >> Error\: A fatal exception has occurred. Program will exit. >> Unrecognized option\: -server -Xint ] >> hostname=idefix >> javatestOS=Windows XP 5.1 (x86) >> javatestVersion=4.4.1 >> jtregVersion=jtreg 4.1 dev b00 >> script=com.sun.javatest.regtest.RegressionScript >> sections=script_messages build compile main >> start=Tue Dec 03 06\:36\:51 CET 2013 >> test=gc/TestVerifyBeforeGCDuringStartup.java >> user.name=FrancisANDRE >> work=Z\:\\JDK\\jdk7u-dev\\hotspot\\JTwork\\gc >> >> #section:script_messages >> ----------messages:(5/223)*---------- >> JDK under test: >> (Z:\\JDK\\jdk7u-dev\\hotspot\\build\\windows\\jdk-windows-i586) >> java version "1.7.0_45" >> Java(TM) SE Runtime Environment (build 1.7.0_45-b18) >> OpenJDK Server VM (build 24.60-b03-internal, interpreted mode) >> >> >> #section:build >> ----------messages:(3/119)---------- >> command: build TestVerifyBeforeGCDuringStartup >> reason: Named class compiled on demand >> elapsed time (seconds): 0.406 >> result: Passed. Build successful >> >> #section:compile >> ----------messages:(3/203)*---------- >> command: compile -XDignore.symbol.file=true >> Z:\\JDK\\jdk7u-dev\\hotspot\\test\\gc\\TestVerifyBeforeGCDuringStartup.java >> reason: .class file out of date or does not exist >> elapsed time (seconds): 0.406 >> ----------rerun:(22/2460)*---------- >> 'PATH=C:\\cygwin\\usr\\local\\bin;C:\\cygwin\\bin;C:\\WINDOWS;C:\\WINDOWS\\system32;C:\\WINDOWS\\System32\\Wbem;C:\\Program >> Files\\Microsoft Visual Studio 10.0\\Common7\\IDE;C:\\Program >> Files\\Microsoft Visual Studio 10.0\\VC\\BIN;C:\\Program >> Files\\Microsoft Visual Studio >> 10.0\\Common7\\Tools;C:\\WINDOWS\\Microsoft.NET\\Framework\\v4.0.30319;C:\\Program >> Files\\Microsoft Visual Studio 10.0\\VC\\VCPackages;C:\\Program >> Files\\Microsoft SDKs\\Windows\\v7.0A\\bin\\NETFX 4.0 >> Tools;C:\\Program Files\\Microsoft >> SDKs\\Windows\\v7.0A\\bin;C:\\Program Files\\Apache Software >> Foundation\\apache-ant-1.8.4\\bin;C:\\Program Files\\Apache Software >> Foundation\\apache-maven-3.0.3\\bin' \\ >> SystemDrive=C: \\ >> 'SystemRoot=C:\\WINDOWS' \\ >> 'TEMP=C:\\cygwin\\tmp' \\ >> 'TMP=C:\\DOCUME~1\\FRANCI~1\\LOCALS~1\\Temp' \\ >> 'windir=C:\\WINDOWS' \\ >> 'Z:\\JDK\\jdk7u-dev\\hotspot\\build\\windows\\jdk-windows-i586\\bin\\javac' >> \\ >> -J-server \\ >> -J-Xint \\ >> -J-Dtest.vm.opts='-server -Xint' \\ >> -J-Dcompile.jdk='Z:\\JDK\\jdk7u-dev\\hotspot\\build\\windows\\jdk-windows-i586' >> \\ >> -J-Dtest.src.path='Z:\\JDK\\jdk7u-dev\\hotspot\\test\\gc;Z:\\JDK\\jdk7u-dev\\hotspot\\test\\testlibrary' >> \\ >> -J-Dtest.src='Z:\\JDK\\jdk7u-dev\\hotspot\\test\\gc' \\ >> -J-Dtest.tool.vm.opts='-J-server -J-Xint' \\ >> -J-Dtest.class.path='Z:\\JDK\\jdk7u-dev\\hotspot\\JTwork\\classes\\0\\gc;Z:\\JDK\\jdk7u-dev\\hotspot\\JTwork\\classes\\0\\testlibrary' >> \\ >> -J-Dtest.timeout.factor=5.0 \\ >> -J-Dtest.classes='Z:\\JDK\\jdk7u-dev\\hotspot\\JTwork\\classes\\0\\gc' \\ >> >> -J-Dtest.class.path.prefix='Z:\\JDK\\jdk7u-dev\\hotspot\\JTwork\\classes\\0\\gc;Z:\\JDK\\jdk7u-dev\\hotspot\\test\\gc;Z:\\JDK\\jdk7u-dev\\hotspot\\JTwork\\classes\\0\\testlibrary' >> \\ >> -J-Dtest.jdk='Z:\\JDK\\jdk7u-dev\\hotspot\\build\\windows\\jdk-windows-i586' >> \\ >> -J-Dtest.java.opts= \\ >> -J-Dtest.compiler.opts= \\ >> -d 'Z:\\JDK\\jdk7u-dev\\hotspot\\JTwork\\classes\\0\\gc' >> -classpath >> 'Z:\\JDK\\jdk7u-dev\\hotspot\\JTwork\\classes\\0\\gc;Z:\\JDK\\jdk7u-dev\\hotspot\\test\\gc;Z:\\JDK\\jdk7u-dev\\hotspot\\JTwork\\classes\\0\\testlibrary;Z:\\JDK\\jdk7u-dev\\hotspot\\build\\windows\\jdk-windows-i586\\lib\\tools.jar' >> -sourcepath >> 'Z:\\JDK\\jdk7u-dev\\hotspot\\test\\gc;Z:\\JDK\\jdk7u-dev\\hotspot\\test\\testlibrary' >> -XDignore.symbol.file=true >> 'Z:\\JDK\\jdk7u-dev\\hotspot\\test\\gc\\TestVerifyBeforeGCDuringStartup.java' >> result: Passed. Compilation successful >> >> #section:main >> ----------messages:(3/164)---------- >> command: main TestVerifyBeforeGCDuringStartup >> reason: Assumed action based on file name: run main >> TestVerifyBeforeGCDuringStartup >> elapsed time (seconds): 0.047 >> ----------rerun:(21/2176)*---------- >> 'PATH=C:\\cygwin\\usr\\local\\bin;C:\\cygwin\\bin;C:\\WINDOWS;C:\\WINDOWS\\system32;C:\\WINDOWS\\System32\\Wbem;C:\\Program >> Files\\Microsoft Visual Studio 10.0\\Common7\\IDE;C:\\Program >> Files\\Microsoft Visual Studio 10.0\\VC\\BIN;C:\\Program >> Files\\Microsoft Visual Studio >> 10.0\\Common7\\Tools;C:\\WINDOWS\\Microsoft.NET\\Framework\\v4.0.30319;C:\\Program >> Files\\Microsoft Visual Studio 10.0\\VC\\VCPackages;C:\\Program >> Files\\Microsoft SDKs\\Windows\\v7.0A\\bin\\NETFX 4.0 >> Tools;C:\\Program Files\\Microsoft >> SDKs\\Windows\\v7.0A\\bin;C:\\Program Files\\Apache Software >> Foundation\\apache-ant-1.8.4\\bin;C:\\Program Files\\Apache Software >> Foundation\\apache-maven-3.0.3\\bin' \\ >> SystemDrive=C: \\ >> 'SystemRoot=C:\\WINDOWS' \\ >> 'TEMP=C:\\cygwin\\tmp' \\ >> 'TMP=C:\\DOCUME~1\\FRANCI~1\\LOCALS~1\\Temp' \\ >> 'windir=C:\\WINDOWS' \\ >> 'Z:\\JDK\\jdk7u-dev\\hotspot\\build\\windows\\jdk-windows-i586\\bin\\java' >> \\ >> -Dtest.vm.opts='-server -Xint' \\ >> -Dcompile.jdk='Z:\\JDK\\jdk7u-dev\\hotspot\\build\\windows\\jdk-windows-i586' >> \\ >> -Dtest.src.path='Z:\\JDK\\jdk7u-dev\\hotspot\\test\\gc;Z:\\JDK\\jdk7u-dev\\hotspot\\test\\testlibrary' >> \\ >> -Dtest.src='Z:\\JDK\\jdk7u-dev\\hotspot\\test\\gc' \\ >> -Dtest.tool.vm.opts='-J-server -J-Xint' \\ >> -Dtest.class.path='Z:\\JDK\\jdk7u-dev\\hotspot\\JTwork\\classes\\0\\gc;Z:\\JDK\\jdk7u-dev\\hotspot\\JTwork\\classes\\0\\testlibrary' >> \\ >> -Dtest.timeout.factor=5.0 \\ >> -Dtest.classes='Z:\\JDK\\jdk7u-dev\\hotspot\\JTwork\\classes\\0\\gc' \\ >> -Dtest.class.path.prefix='Z:\\JDK\\jdk7u-dev\\hotspot\\JTwork\\classes\\0\\gc;Z:\\JDK\\jdk7u-dev\\hotspot\\test\\gc;Z:\\JDK\\jdk7u-dev\\hotspot\\JTwork\\classes\\0\\testlibrary' >> \\ >> -Dtest.jdk='Z:\\JDK\\jdk7u-dev\\hotspot\\build\\windows\\jdk-windows-i586' >> \\ >> -Dtest.java.opts= \\ >> -Dtest.compiler.opts= \\ >> -classpath >> 'Z:\\JDK\\jdk7u-dev\\hotspot\\JTwork\\classes\\0\\gc;Z:\\JDK\\jdk7u-dev\\hotspot\\test\\gc;Z:\\JDK\\jdk7u-dev\\hotspot\\JTwork\\classes\\0\\testlibrary;Z:\\JDK\\jdk7u-dev\\hotspot\\build\\windows\\jdk-windows-i586\\lib\\tools.jar' >> \\ >> TestVerifyBeforeGCDuringStartup >> ----------System.err:(17/915)---------- >> java.lang.RuntimeException: '[Verifying' missing from stdout/stderr: >> [Error: Could not create the Java Virtual Machine. >> Error: A fatal exception has occurred. Program will exit. >> Unrecognized option: -server -Xint >> ] >> >> at >> com.oracle.java.testlibrary.OutputAnalyzer.shouldContain(OutputAnalyzer.java:79) >> at >> TestVerifyBeforeGCDuringStartup.main(TestVerifyBeforeGCDuringStartup.java:42) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) >> at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) >> at java.lang.reflect.Method.invoke(Method.java:606) >> at >> com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:746) >> at java.lang.Thread.run(Thread.java:744) >> >> JavaTest Message: Test threw exception: java.lang.RuntimeException >> JavaTest Message: shutting down test >> >> result: Failed. Execution failed: `main' threw exception: >> java.lang.RuntimeException: '[Verifying' missing from stdout/stderr: >> [Error: Could not create the Java Virtual Machine. Error: A fatal >> exception has occurred. Program will exit. Unrecognized option: >> -server -Xint ] >> >> >> test result: Failed. Execution failed: `main' threw exception: >> java.lang.RuntimeException: '[Verifying' missing from stdout/stderr: >> [Error: Could not create the Java Virtual Machine. Error: A fatal >> exception has occurred. Program will exit. Unrecognized option: >> -server -Xint ] >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/jtreg-use/attachments/20131206/f5f0a633/attachment-0001.html From francis.andre.kampbell at orange.fr Sat Dec 7 00:32:57 2013 From: francis.andre.kampbell at orange.fr (Francis ANDRE) Date: Sat, 07 Dec 2013 09:32:57 +0100 Subject: [wxp]: make -C make test fails on windows Message-ID: <52A2DD39.6020509@orange.fr> Hi Jon The jtreg tests are failing on windows because there is yet a cygwin path in one classpath. See below the full execution log where you will found this line -cp "../../../testClasses;/cygdrive/Z/JDK/jtreg/build/images/jtreg/lib/jtreg.jar" \ Francis FrancisANDRE at idefix /cygdrive/Z/JDK/jtreg $ make -C make test make: Entering directory `/cygdrive/Z/JDK/jtreg/make' CLASSPATH="../build/classes;../src/share/classes;Z:/JDK/jtharness/lib/javatest.jar;Z:/JDK/javahelp/2.0/javahelp/lib/jh.jar" \ C:/Progra~1/Java/jdk1.6.0_35/bin/java -Djavatest.i18n.log=com.sun.javatest.regtest \ \ com.sun.javatest.regtest.Main -help all \ > ../build/i18n.com.sun.javatest.regtest.log 2>&1 /bin/grep help.jcov ../src/share/classes/com/sun/javatest/regtest/i18n.properties | /bin/sed -e 's/\(.*\)=.*/i18n: \1/' >> ../build/ i18n.com.sun.javatest.regtest.log /bin/sh checkI18NProps.sh ../src/share/classes/com/sun/javatest/regtest ../build/i18n.com.sun.javatest.regtest.log echo ../build/i18n.com.sun.javatest.regtest.ok passed at `date` > ../build/i18n.com.sun.javatest.regtest.ok /bin/rm -rf ../build/Basic.check/work ../build/Basic.check/report /bin/mkdir -p ../build/Basic.check/work/scratch ../build/Basic.check/report C:/Progra~1/Java/jdk1.6.0_35/bin/java \ -Djavatest.regtest.allowTrailingBuild=true \ -jar ../build/images/jtreg/lib/jtreg.jar \ -w ../build/Basic.check/work \ -r ../build/Basic.check/report \ -c -v1 \ ../src/share/test/javatest/regtest/data/basic \ > ../build/Basic.check/log 2>&1|| \ true "non-zero exit code from JavaTest intentionally ignored" /bin/grep -s 'Test results: passed: 146; error: 74' ../build/Basic.check/log > /dev/null echo ../build/Basic.check.ok passed at `date` > ../build/Basic.check.ok /bin/rm -rf ../build/Basic.othervm/work ../build/Basic.othervm/report /bin/mkdir -p ../build/Basic.othervm/work/scratch ../build/Basic.othervm/report CLASSPATH="../build/classes;../src/share/classes;Z:/JDK/jtharness/lib/javatest.jar" \ C:/Progra~1/Java/jdk1.6.0_35/bin/javac -encoding ISO8859-1 -d ../build/testClasses ../src/share/test/javatest/regtest/Basic. java DISPLAY=`sh display.sh` export DISPLAY ; \ trap "sh `pwd`/display.sh -kill" 0 ; \ cd ../build/Basic.othervm/work/scratch ; \ C:/Progra~1/Java/jdk1.6.0_35/bin/java \ -cp "../../../testClasses;/cygdrive/Z/JDK/jtreg/build/images/jtreg/lib/jtreg.jar" \ -Ddebug.com.sun.javatest.TestResultTable=true \ -Ddebug.com.sun.javatest.TRT.TreeIterator=true \ -Ddebug.com.sun.javatest.TestRunner=true \ -Djavatest.regtest.allowTrailingBuild=true \ -Djavatest.regtest.showCmd=true \ -Djavatest.regtest.debugChild=true \ -Djavatest.regtest.debugOptions=true \ Basic \ Z:/JDK/jtreg/src/share/test/javatest/regtest/data/basic \ ../../report \ ../../work \ C:/Progra~1/Java/jdk1.6.0_35 \ "DISPLAY=${DISPLAY:-`uname -n`:0.0}" \ -othervm \ > ../../log 2>&1 \ || (cat ../../log ; exit 1) java.lang.NoClassDefFoundError: com/sun/javatest/Harness$Fault Caused by: java.lang.ClassNotFoundException: com.sun.javatest.Harness$Fault at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) Could not find the main class: Basic. Program will exit. Exception in thread "main" make: *** [../build/Basic.othervm.ok] Error 1 make: Leaving directory `/cygdrive/Z/JDK/jtreg/make' From francis.andre.kampbell at orange.fr Sat Dec 7 09:12:52 2013 From: francis.andre.kampbell at orange.fr (Francis ANDRE) Date: Sat, 07 Dec 2013 18:12:52 +0100 Subject: [7u] ProblemList.txt for hotspot/test Message-ID: <52A35714.6060401@orange.fr> Hi There is a ProblemList.txt file inside jdk/test while there is not in hotspot/test. Is this list missing? I am running the following jtreg and some tests fail because they are requiring -Xcomp while I am testing the cppInterpretor. $JT_HOME/win32/bin/jtreg -dir:Z:/jdk/hsx/jdk7u/hotspot/test -Xint -server -verbose:summary -conc:2 -a -ignore:quiet -timeoutFactor:5 -agentvm -testjdk:Z:/JDK/hsx/jdk7u/hotspot/build/windows/jdk-windows-i586 compiler gc runtime sanity serviceability How can I add a test to exclude if the JVM option for the test is -Xcomp in a exclude list like ProblemList.txt while it is the -Xint that is under test? Francis From Alan.Bateman at oracle.com Sun Dec 8 12:35:08 2013 From: Alan.Bateman at oracle.com (Alan Bateman) Date: Sun, 08 Dec 2013 20:35:08 +0000 Subject: [7u] ProblemList.txt for hotspot/test In-Reply-To: <52A35714.6060401@orange.fr> References: <52A35714.6060401@orange.fr> Message-ID: <52A4D7FC.9000108@oracle.com> On 07/12/2013 17:12, Francis ANDRE wrote: > Hi > > There is a ProblemList.txt file inside jdk/test while there is not in > hotspot/test. Is this list missing? > Tests in the jdk repository can be @ignore-ed or they can be excluded by adding them to the ProblemList.txt (which is an exclude list). The one benefit of the exclude list approach is that it allows us to exclude tests for specific platforms, something that is very useful in the libraries area because we regularly have test issues that are specific to one or two platforms but not all. The downside with the exclude list approach is that it is easy to forgot it and so easy to leave a test excluded even after fixing an issue. In any case, the exclude list approach probably isn't flexible enough for hotspot as there isn't a way to exclude tests based on compiler modes or other VM options. -Alan. From jonathan.gibbons at oracle.com Wed Dec 11 15:28:55 2013 From: jonathan.gibbons at oracle.com (Jonathan Gibbons) Date: Wed, 11 Dec 2013 15:28:55 -0800 Subject: Number of agent VMs unbounded even when running with -concurrency:N ? In-Reply-To: <528F3670.5000401@oracle.com> References: <528F3670.5000401@oracle.com> Message-ID: <52A8F537.9010508@oracle.com> On 11/22/2013 02:48 AM, Alan Bateman wrote: > > Mike Duigou and I were chatting yesterday about the number of VMs that > are might be in memory at a time when running in agentvm mode with > -concurrency:N. We're not using -compilejdk so I think the starting > answer is N+1 (the additional 1 because of jtreg itself). With the jdk > tests then it gets complicated because there are some areas when the > tests are configured to run in othervm mode, also there are many tests > that spin up several VMs for the duration of the test. > > One point of discussion is we have different understanding on is what > happens when a test is configured to run with a specific set of VM > options. So suppose we are running with -concurrency:N and the agent > pool has N agents already. If jtreg encounters a test with a > completely new set of VM options then does it spin up a new VM (hence > growing the pool to N+1) or does it close down one agent VM and spin > up a new one? > > I skimmed through the jtreg code but it wasn't immediately obvious. > Mike went one further and plotted the number of VMs that he sees on > his system when running with -concurrency:11. His plots support his > understanding that the number of VMs may be unbounded. > > -Alan. I'm sorry I missed this when it was first posted. I agree that the expected behavior should be N+1 VMs, plus transient extra VMs as needed for indidivual tests. If you have evidence that the set of VMs is growing without bound, I would be interested to follow up on that. I would (obviously) regard that as a fairly high priority bug. I did check the jtreg code, and the following lines in MainAction.java reflect the intent that you can only use test-specific JVM options in conjunction with /othervm mode: > if (!othervm) { > if (testJavaArgs.size() > 0) > throw new ParseException(testJavaArgs + > MAIN_UNEXPECT_VMOPT); How easy would it be to run something like jps within a loop while jtreg is running, and save the output for analysis, so that we can easily see the java commands that were active as the number of VMs increases? -- Jon From peter.brunet at oracle.com Mon Dec 16 18:30:34 2013 From: peter.brunet at oracle.com (Pete Brunet) Date: Mon, 16 Dec 2013 20:30:34 -0600 Subject: Regression test failure loading a DLL Message-ID: <52AFB74A.9070309@oracle.com> Please see this thread: http://mail.openjdk.java.net/pipermail/awt-dev/2013-December/006655.html I haven't been able to get past this issue yet so am posting here. I don't know if this would be considered a jtreg-dev or jtreg-use issue so please forgive the double post. Thanks, Pete From david.holmes at oracle.com Wed Dec 18 16:21:09 2013 From: david.holmes at oracle.com (David Holmes) Date: Thu, 19 Dec 2013 10:21:09 +1000 Subject: [7u] ProblemList.txt for hotspot/test In-Reply-To: <52A35714.6060401@orange.fr> References: <52A35714.6060401@orange.fr> Message-ID: <52B23BF5.2020103@oracle.com> On 8/12/2013 3:12 AM, Francis ANDRE wrote: > Hi > > There is a ProblemList.txt file inside jdk/test while there is not in > hotspot/test. Is this list missing? > > I am running the following jtreg and some tests fail because they are > requiring -Xcomp while I am testing the cppInterpretor. > > $JT_HOME/win32/bin/jtreg -dir:Z:/jdk/hsx/jdk7u/hotspot/test -Xint > -server -verbose:summary -conc:2 -a -ignore:quiet -timeoutFactor:5 > -agentvm > -testjdk:Z:/JDK/hsx/jdk7u/hotspot/build/windows/jdk-windows-i586 > compiler gc runtime sanity serviceability > > How can I add a test to exclude if the JVM option for the test is -Xcomp > in a exclude list like ProblemList.txt while it is the -Xint that is > under test? You could define your own groups in TEST.groups and only run the valid subsets. But identifying the subsets are the problems. The tests historically have been written assuming you always have a full JDK under test with all available VM facilities. Those assumptions are not valid when you consider even a JRE, and now compact profile JREs, let alone an environment where you only have the interpreter. David > Francis >