8243945: use driver mode in runtime tests
Reviewed-by: dholmes, dcubed, gziemski
This commit is contained in:
parent
e93cd7ed3c
commit
46fe7e303b
test/hotspot/jtreg/runtime
BadObjectClass
BootClassAppendProp
BootstrapMethod
CDSCompressedKPtrs
ClassFile
CommandLine
BooleanFlagWithInvalidValue.javaCompilerConfigFileWarning.javaConfigFileParsing.javaConfigFileWarning.javaDoubleFlagWithIntegerValue.javaFlagWithInvalidValue.javaIgnoreUnrecognizedVMOptions.javaNonBooleanFlagWithInvalidBooleanPrefix.javaObsoleteFlagErrorMessage.java
OptionsValidation
TestHexArguments.javaTestLongUnrecognizedVMOption.javaTestVMOptions.javaTraceExceptionsTest.javaUnrecognizedVMOption.javaVMAliasOptions.javaVMDeprecatedOptions.javaVMOptionWarning.javaVMOptionsFile
CompressedOops
Dictionary
EnclosingMethodAttr
ErrorHandling
ErrorFileOverwriteTest.javaErrorFileRedirectTest.javaNestedThreadsListHandleInErrorHandlingTest.javaSafeFetchInErrorHandlingTest.javaSecondaryErrorTest.javaShowRegistersOnAssertTest.javaTestOnError.javaTestOnOutOfMemoryError.javaThreadsListHandleInErrorHandlingTest.javaTimeoutInErrorHandlingTest.javaVeryEarlyAssertTest.java
InvocationTests
invocationC1Tests.javainvocationGraalTests.javainvokeinterfaceTests.javainvokespecialTests.javainvokevirtualTests.java
LoadClass
Metaspace
NMT
CheckForProperDetailStackTrace.javaCommandLineDetail.javaCommandLineEmptyArgument.javaCommandLineInvalidArgument.javaCommandLineSummary.javaCommandLineTurnOffNMT.javaJcmdWithNMTDisabled.javaNMTWithCDS.javaPrintNMTStatistics.javaPrintNMTStatisticsWithNMTDisabled.java
PerfMemDestroy
PrintStringTableStats
Safepoint
Thread
Throwable
XCheckJniJsig
cds
classFileParserBug
condy
contended
duplAttributes
getSysPackage
logging
memory
modules
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -28,7 +28,7 @@
|
||||
* @library /test/lib
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* java.management
|
||||
* @run main BootstrapRedefine
|
||||
* @run driver BootstrapRedefine
|
||||
*/
|
||||
|
||||
import jdk.test.lib.compiler.InMemoryJavaCompiler;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -27,6 +27,7 @@
|
||||
* @summary Uninitialized system property jdk.boot.class.path.append causes SIGSEGV
|
||||
* @library /test/lib
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @run driver BootClassPathAppend
|
||||
*/
|
||||
|
||||
import jdk.test.lib.process.ProcessTools;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -27,7 +27,7 @@
|
||||
* @library /test/lib
|
||||
* @compile TestPkg/LambdaMetafactory.java
|
||||
* @compile TestPkg/Lambda.jasm
|
||||
* @run main TestLambdaExceptionInInitializer
|
||||
* @run driver TestLambdaExceptionInInitializer
|
||||
*/
|
||||
|
||||
import jdk.test.lib.process.ProcessTools;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -29,7 +29,7 @@
|
||||
* @library /test/lib
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* java.management
|
||||
* @run main CDSCompressedKPtrs
|
||||
* @run driver CDSCompressedKPtrs
|
||||
*/
|
||||
|
||||
import jdk.test.lib.Platform;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -29,7 +29,7 @@
|
||||
* @library /test/lib
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* java.management
|
||||
* @run main XShareAuto
|
||||
* @run driver XShareAuto
|
||||
*/
|
||||
|
||||
import jdk.test.lib.Platform;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -29,7 +29,7 @@
|
||||
* @compile BadHelloWorld.jcod
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* java.management
|
||||
* @run main FormatCheckingTest
|
||||
* @run driver FormatCheckingTest
|
||||
*/
|
||||
|
||||
import jdk.test.lib.process.OutputAnalyzer;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2011, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -37,7 +37,7 @@
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* java.desktop
|
||||
* java.management
|
||||
* @run main JsrRewriting
|
||||
* @run driver JsrRewriting
|
||||
*/
|
||||
|
||||
import jdk.test.lib.JDKToolFinder;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2011, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -37,7 +37,7 @@
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* java.desktop
|
||||
* java.management
|
||||
* @run main OomWhileParsingRepeatedJsr
|
||||
* @run driver OomWhileParsingRepeatedJsr
|
||||
*/
|
||||
|
||||
import jdk.test.lib.JDKToolFinder;
|
||||
|
@ -31,7 +31,7 @@
|
||||
* classes in method throws clauses.
|
||||
* @library /test/lib
|
||||
* @compile CheckedExceptions.jcod
|
||||
* @run main TestCheckedExceptions
|
||||
* @run driver TestCheckedExceptions
|
||||
*/
|
||||
|
||||
import jdk.test.lib.process.ProcessTools;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -28,6 +28,7 @@
|
||||
* @library /test/lib
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* java.management
|
||||
* @run driver BooleanFlagWithInvalidValue
|
||||
*/
|
||||
|
||||
import jdk.test.lib.process.ProcessTools;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -28,6 +28,7 @@
|
||||
* @library /test/lib
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* java.management
|
||||
* @run driver CompilerConfigFileWarning
|
||||
*/
|
||||
|
||||
import java.io.PrintWriter;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -28,6 +28,7 @@
|
||||
* @library /test/lib
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* java.management
|
||||
* @run driver ConfigFileParsing
|
||||
*/
|
||||
|
||||
import java.io.PrintWriter;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -28,6 +28,7 @@
|
||||
* @library /test/lib
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* java.management
|
||||
* @run driver ConfigFileWarning
|
||||
*/
|
||||
|
||||
import java.io.PrintWriter;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -28,6 +28,7 @@
|
||||
* @library /test/lib
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* java.management
|
||||
* @run driver DoubleFlagWithIntegerValue
|
||||
*/
|
||||
|
||||
import jdk.test.lib.process.ProcessTools;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -28,6 +28,7 @@
|
||||
* @library /test/lib
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* java.management
|
||||
* @run driver FlagWithInvalidValue
|
||||
*/
|
||||
|
||||
import jdk.test.lib.process.ProcessTools;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -33,7 +33,7 @@ import jdk.test.lib.Platform;
|
||||
* @library /test/lib
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* java.management
|
||||
* @run main IgnoreUnrecognizedVMOptions
|
||||
* @run driver IgnoreUnrecognizedVMOptions
|
||||
*/
|
||||
public class IgnoreUnrecognizedVMOptions {
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -28,6 +28,7 @@
|
||||
* @library /test/lib
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* java.management
|
||||
* @run driver NonBooleanFlagWithInvalidBooleanPrefix
|
||||
*/
|
||||
|
||||
import jdk.test.lib.process.ProcessTools;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2014, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2014, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -27,6 +27,7 @@
|
||||
* @summary Newly obsolete command line options should still give useful error messages when used improperly.
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /test/lib
|
||||
* @run driver ObsoleteFlagErrorMessage
|
||||
*/
|
||||
|
||||
import jdk.test.lib.process.ProcessTools;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -30,7 +30,7 @@
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* java.management
|
||||
* jdk.management
|
||||
* @run main TestJcmdOutput
|
||||
* @run driver TestJcmdOutput
|
||||
*/
|
||||
|
||||
import jdk.test.lib.Asserts;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -32,7 +32,7 @@
|
||||
* java.management
|
||||
* jdk.attach/sun.tools.attach
|
||||
* jdk.internal.jvmstat/sun.jvmstat.monitor
|
||||
* @run main/othervm/timeout=1800 TestOptionsWithRanges 1 of 10
|
||||
* @run driver/timeout=1800 TestOptionsWithRanges 1 of 10
|
||||
*/
|
||||
/*
|
||||
* @test
|
||||
@ -43,7 +43,7 @@
|
||||
* java.management
|
||||
* jdk.attach/sun.tools.attach
|
||||
* jdk.internal.jvmstat/sun.jvmstat.monitor
|
||||
* @run main/othervm/timeout=1800 TestOptionsWithRanges 2 of 10
|
||||
* @run driver/timeout=1800 TestOptionsWithRanges 2 of 10
|
||||
*/
|
||||
/*
|
||||
* @test
|
||||
@ -54,7 +54,7 @@
|
||||
* java.management
|
||||
* jdk.attach/sun.tools.attach
|
||||
* jdk.internal.jvmstat/sun.jvmstat.monitor
|
||||
* @run main/othervm/timeout=1800 TestOptionsWithRanges 3 of 10
|
||||
* @run driver/timeout=1800 TestOptionsWithRanges 3 of 10
|
||||
*/
|
||||
/*
|
||||
* @test
|
||||
@ -65,7 +65,7 @@
|
||||
* java.management
|
||||
* jdk.attach/sun.tools.attach
|
||||
* jdk.internal.jvmstat/sun.jvmstat.monitor
|
||||
* @run main/othervm/timeout=1800 TestOptionsWithRanges 4 of 10
|
||||
* @run driver/timeout=1800 TestOptionsWithRanges 4 of 10
|
||||
*/
|
||||
/*
|
||||
* @test
|
||||
@ -76,7 +76,7 @@
|
||||
* java.management
|
||||
* jdk.attach/sun.tools.attach
|
||||
* jdk.internal.jvmstat/sun.jvmstat.monitor
|
||||
* @run main/othervm/timeout=1800 TestOptionsWithRanges 5 of 10
|
||||
* @run driver/timeout=1800 TestOptionsWithRanges 5 of 10
|
||||
*/
|
||||
/*
|
||||
* @test
|
||||
@ -87,7 +87,7 @@
|
||||
* java.management
|
||||
* jdk.attach/sun.tools.attach
|
||||
* jdk.internal.jvmstat/sun.jvmstat.monitor
|
||||
* @run main/othervm/timeout=1800 TestOptionsWithRanges 6 of 10
|
||||
* @run driver/timeout=1800 TestOptionsWithRanges 6 of 10
|
||||
*/
|
||||
/*
|
||||
* @test
|
||||
@ -98,7 +98,7 @@
|
||||
* java.management
|
||||
* jdk.attach/sun.tools.attach
|
||||
* jdk.internal.jvmstat/sun.jvmstat.monitor
|
||||
* @run main/othervm/timeout=1800 TestOptionsWithRanges 7 of 10
|
||||
* @run driver/timeout=1800 TestOptionsWithRanges 7 of 10
|
||||
*/
|
||||
/*
|
||||
* @test
|
||||
@ -109,7 +109,7 @@
|
||||
* java.management
|
||||
* jdk.attach/sun.tools.attach
|
||||
* jdk.internal.jvmstat/sun.jvmstat.monitor
|
||||
* @run main/othervm/timeout=1800 TestOptionsWithRanges 8 of 10
|
||||
* @run driver/timeout=1800 TestOptionsWithRanges 8 of 10
|
||||
*/
|
||||
/*
|
||||
* @test
|
||||
@ -120,7 +120,7 @@
|
||||
* java.management
|
||||
* jdk.attach/sun.tools.attach
|
||||
* jdk.internal.jvmstat/sun.jvmstat.monitor
|
||||
* @run main/othervm/timeout=1800 TestOptionsWithRanges 9 of 10
|
||||
* @run driver/timeout=1800 TestOptionsWithRanges 9 of 10
|
||||
*/
|
||||
/*
|
||||
* @test
|
||||
@ -131,7 +131,7 @@
|
||||
* java.management
|
||||
* jdk.attach/sun.tools.attach
|
||||
* jdk.internal.jvmstat/sun.jvmstat.monitor
|
||||
* @run main/othervm/timeout=1800 TestOptionsWithRanges 10 of 10
|
||||
* @run driver/timeout=1800 TestOptionsWithRanges 10 of 10
|
||||
*/
|
||||
// --- end auto-generated
|
||||
|
||||
|
@ -35,7 +35,7 @@ for i in {1..10}; do
|
||||
* java.management
|
||||
* jdk.attach/sun.tools.attach
|
||||
* jdk.internal.jvmstat/sun.jvmstat.monitor
|
||||
* @run main/othervm/timeout=1800 TestOptionsWithRanges $i of 10
|
||||
* @run driver/timeout=1800 TestOptionsWithRanges $i of 10
|
||||
*/
|
||||
EOF
|
||||
done
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2014, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -29,6 +29,7 @@
|
||||
* @library /test/lib
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* java.management
|
||||
* @run driver TestHexArguments
|
||||
*/
|
||||
|
||||
import java.io.File;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -28,7 +28,7 @@
|
||||
* @library /test/lib
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @modules java.management
|
||||
* @run main TestLongUnrecognizedVMOption
|
||||
* @run driver TestLongUnrecognizedVMOption
|
||||
*/
|
||||
|
||||
import jdk.test.lib.process.OutputAnalyzer;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2014, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -28,7 +28,7 @@
|
||||
* @library /test/lib
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* java.management
|
||||
* @run main TestVMOptions
|
||||
* @run driver TestVMOptions
|
||||
*/
|
||||
|
||||
import jdk.test.lib.process.ProcessTools;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2014, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -28,6 +28,7 @@
|
||||
* @library /test/lib
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* java.management
|
||||
* @run driver TraceExceptionsTest
|
||||
*/
|
||||
|
||||
import jdk.test.lib.process.ProcessTools;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -28,6 +28,7 @@
|
||||
* @library /test/lib
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* java.management
|
||||
* @run driver UnrecognizedVMOption
|
||||
*/
|
||||
|
||||
import jdk.test.lib.process.ProcessTools;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -31,6 +31,7 @@ import jdk.test.lib.cli.*;
|
||||
* @summary Test that various alias options correctly set the target options. See aliased_jvm_flags in arguments.cpp.
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /test/lib
|
||||
* @run driver VMAliasOptions
|
||||
*/
|
||||
public class VMAliasOptions {
|
||||
|
||||
|
@ -31,6 +31,7 @@ import jdk.test.lib.cli.*;
|
||||
* @summary Test that various options are deprecated. See deprecated_jvm_flags in arguments.cpp.
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /test/lib
|
||||
* @run driver VMDeprecatedOptions
|
||||
*/
|
||||
public class VMDeprecatedOptions {
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2014, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2014, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -28,6 +28,7 @@
|
||||
* @library /test/lib
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* java.management
|
||||
* @run driver VMOptionWarning
|
||||
*/
|
||||
|
||||
import jdk.test.lib.process.ProcessTools;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -28,7 +28,7 @@
|
||||
* @library /test/lib
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @modules jdk.management
|
||||
* @run main TestVMOptionsFile
|
||||
* @run driver TestVMOptionsFile
|
||||
*/
|
||||
|
||||
import java.io.File;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -29,7 +29,7 @@
|
||||
* @library /test/lib
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* java.management
|
||||
* @run main CompressedClassPointers
|
||||
* @run driver CompressedClassPointers
|
||||
*/
|
||||
|
||||
import jdk.test.lib.Platform;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -30,7 +30,7 @@
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* java.management
|
||||
* @requires vm.bits == 64
|
||||
* @run main CompressedKlassPointerAndOops
|
||||
* @run driver CompressedKlassPointerAndOops
|
||||
*/
|
||||
|
||||
import jdk.test.lib.Platform;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2014, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -28,7 +28,7 @@
|
||||
* @library /test/lib
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* java.management
|
||||
* @run main ObjectAlignment
|
||||
* @run driver ObjectAlignment
|
||||
*/
|
||||
|
||||
import jdk.test.lib.Platform;
|
||||
|
@ -28,7 +28,7 @@
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @build sun.hotspot.WhiteBox
|
||||
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
|
||||
* @run main CleanProtectionDomain
|
||||
* @run driver CleanProtectionDomain
|
||||
*/
|
||||
|
||||
import java.security.ProtectionDomain;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -31,7 +31,7 @@
|
||||
* @build jdk.test.lib.Utils
|
||||
* jdk.test.lib.util.JarUtils
|
||||
* @build ClassForName ProtectionDomainCacheTest
|
||||
* @run main/othervm/policy=test.policy -Djava.security.manager ProtectionDomainCacheTest
|
||||
* @run driver ProtectionDomainCacheTest
|
||||
*/
|
||||
|
||||
import java.net.URL;
|
||||
|
@ -29,7 +29,7 @@
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* java.management
|
||||
* @compile EnclMethTest.jcod
|
||||
* @run main EnclMethodAttr
|
||||
* @run driver EnclMethodAttr
|
||||
*/
|
||||
|
||||
import java.io.File;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2019, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2019, SAP. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
@ -31,6 +31,7 @@
|
||||
* @library /test/lib
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @requires (vm.debug == true)
|
||||
* @run driver ErrorFileOverwriteTest
|
||||
*/
|
||||
|
||||
import jdk.test.lib.process.OutputAnalyzer;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2019, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2019, SAP. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
@ -30,6 +30,7 @@
|
||||
* @library /test/lib
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @requires (vm.debug == true)
|
||||
* @run driver ErrorFileRedirectTest
|
||||
*/
|
||||
|
||||
import jdk.test.lib.process.OutputAnalyzer;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -38,7 +38,7 @@ import jdk.test.lib.process.ProcessTools;
|
||||
* @summary Nested ThreadsListHandle info should be in error handling output.
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /test/lib
|
||||
* @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+EnableThreadSMRStatistics NestedThreadsListHandleInErrorHandlingTest
|
||||
* @run driver NestedThreadsListHandleInErrorHandlingTest
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -54,6 +54,7 @@ public class NestedThreadsListHandleInErrorHandlingTest {
|
||||
// counters and confusing this test.
|
||||
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(
|
||||
"-XX:+UnlockDiagnosticVMOptions",
|
||||
"-XX:+EnableThreadSMRStatistics",
|
||||
"-Xmx100M",
|
||||
"-XX:ErrorHandlerTest=17",
|
||||
"-XX:-CreateCoredumpOnCrash",
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -38,6 +38,7 @@ import jdk.test.lib.process.ProcessTools;
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /test/lib
|
||||
* @author Thomas Stuefe (SAP)
|
||||
* @run driver SafeFetchInErrorHandlingTest
|
||||
*/
|
||||
|
||||
public class SafeFetchInErrorHandlingTest {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -30,6 +30,7 @@
|
||||
* @author Thomas Stuefe (SAP)
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* java.management
|
||||
* @run driver SecondaryErrorTest
|
||||
*/
|
||||
|
||||
import java.io.BufferedReader;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -31,6 +31,7 @@
|
||||
* @author Thomas Stuefe (SAP)
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* java.management
|
||||
* @run driver ShowRegistersOnAssertTest
|
||||
*/
|
||||
|
||||
// Note: this test can only run on debug since it relies on VMError::controlled_crash() which
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -28,7 +28,7 @@
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /test/lib
|
||||
* @requires vm.debug
|
||||
* @run main TestOnError
|
||||
* @run driver TestOnError
|
||||
*/
|
||||
|
||||
import jdk.test.lib.process.ProcessTools;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -26,7 +26,7 @@
|
||||
* @summary Test using single and multiple -XX:OnOutOfMemoryError=<cmd>
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /test/lib
|
||||
* @run main TestOnOutOfMemoryError
|
||||
* @run driver TestOnOutOfMemoryError
|
||||
* @bug 8078470 8177522
|
||||
*/
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -38,7 +38,7 @@ import jdk.test.lib.process.ProcessTools;
|
||||
* @summary ThreadsListHandle info should be in error handling output.
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /test/lib
|
||||
* @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+EnableThreadSMRStatistics ThreadsListHandleInErrorHandlingTest
|
||||
* @run driver ThreadsListHandleInErrorHandlingTest
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -54,6 +54,7 @@ public class ThreadsListHandleInErrorHandlingTest {
|
||||
// counters and confusing this test.
|
||||
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(
|
||||
"-XX:+UnlockDiagnosticVMOptions",
|
||||
"-XX:+EnableThreadSMRStatistics",
|
||||
"-Xmx100M",
|
||||
"-XX:ErrorHandlerTest=16",
|
||||
"-XX:-CreateCoredumpOnCrash",
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -38,6 +38,7 @@ import jdk.test.lib.process.ProcessTools;
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /test/lib
|
||||
* @requires (vm.debug == true) & (os.family != "windows")
|
||||
* @run driver TimeoutInErrorHandlingTest
|
||||
* @author Thomas Stuefe (SAP)
|
||||
*/
|
||||
|
||||
|
@ -31,6 +31,7 @@
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @requires (vm.debug == true)
|
||||
* @requires os.family == "linux"
|
||||
* @run driver VeryEarlyAssertTest
|
||||
*/
|
||||
|
||||
import java.io.BufferedReader;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2019, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -36,7 +36,7 @@
|
||||
* invokevirtual/Checker.java invokevirtual/ClassGenerator.java invokevirtual/Generator.java
|
||||
* invokeinterface/Checker.java invokeinterface/ClassGenerator.java invokeinterface/Generator.java
|
||||
*
|
||||
* @run main/othervm/timeout=1800 invocationC1Tests
|
||||
* @run driver/timeout=1800 invocationC1Tests
|
||||
*/
|
||||
|
||||
import jdk.test.lib.process.ProcessTools;
|
||||
@ -45,7 +45,7 @@ import jdk.test.lib.compiler.InMemoryJavaCompiler;
|
||||
|
||||
public class invocationC1Tests {
|
||||
|
||||
public static void runTest(String whichTests, String classFileVersion) throws Exception {
|
||||
public static void runTest(String whichTests, String classFileVersion) throws Throwable {
|
||||
System.out.println("\nC1 invocation tests, Tests: " + whichTests +
|
||||
", class file version: " + classFileVersion);
|
||||
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(false, "-Xmx128M",
|
||||
@ -66,7 +66,8 @@ public class invocationC1Tests {
|
||||
System.out.println(
|
||||
"\nAlso note that passing --dump to invoke*.Generator will" +
|
||||
" dump the generated classes (for debugging purposes).\n");
|
||||
System.exit(1);
|
||||
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2019, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -37,7 +37,7 @@
|
||||
* invokevirtual/Checker.java invokevirtual/ClassGenerator.java invokevirtual/Generator.java
|
||||
* invokeinterface/Checker.java invokeinterface/ClassGenerator.java invokeinterface/Generator.java
|
||||
*
|
||||
* @run main/othervm/timeout=1800 invocationGraalTests
|
||||
* @run driver/timeout=1800 invocationGraalTests
|
||||
*/
|
||||
|
||||
import jdk.test.lib.process.ProcessTools;
|
||||
@ -46,7 +46,7 @@ import jdk.test.lib.compiler.InMemoryJavaCompiler;
|
||||
|
||||
public class invocationGraalTests {
|
||||
|
||||
public static void runTest(String whichTests, String classFileVersion) throws Exception {
|
||||
public static void runTest(String whichTests, String classFileVersion) throws Throwable {
|
||||
System.out.println("\nGraal invocation tests, Tests: " + whichTests +
|
||||
", class file version: " + classFileVersion);
|
||||
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(false, "-Xmx128M",
|
||||
@ -67,7 +67,8 @@ public class invocationGraalTests {
|
||||
System.out.println(
|
||||
"\nAlso note that passing --dump to invoke*.Generator will" +
|
||||
" dump the generated classes (for debugging purposes).\n");
|
||||
System.exit(1);
|
||||
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2019, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -35,7 +35,7 @@
|
||||
* @compile invokeinterface/Checker.java invokeinterface/ClassGenerator.java
|
||||
* invokeinterface/Generator.java
|
||||
*
|
||||
* @run main/othervm/timeout=1800 invokeinterfaceTests
|
||||
* @run driver/timeout=1800 invokeinterfaceTests
|
||||
*/
|
||||
|
||||
import jdk.test.lib.process.ProcessTools;
|
||||
@ -44,7 +44,7 @@ import jdk.test.lib.compiler.InMemoryJavaCompiler;
|
||||
|
||||
public class invokeinterfaceTests {
|
||||
|
||||
public static void runTest(String classFileVersion, String option) throws Exception {
|
||||
public static void runTest(String classFileVersion, String option) throws Throwable {
|
||||
System.out.println("\ninvokeinterface invocation tests, option: " + option +
|
||||
", class file version: " + classFileVersion);
|
||||
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(false, "-Xmx128M", option,
|
||||
@ -65,7 +65,7 @@ public class invokeinterfaceTests {
|
||||
"\nAlso note that passing --dump to invokeinterface.Generator will" +
|
||||
" dump the generated classes (for debugging purposes).\n");
|
||||
|
||||
System.exit(1);
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2019, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -34,7 +34,7 @@
|
||||
* shared/ByteArrayClassLoader.java shared/Checker.java shared/GenericClassGenerator.java
|
||||
* @compile invokespecial/Checker.java invokespecial/ClassGenerator.java invokespecial/Generator.java
|
||||
*
|
||||
* @run main/othervm/timeout=1800 invokespecialTests
|
||||
* @run driver/timeout=1800 invokespecialTests
|
||||
*/
|
||||
|
||||
import jdk.test.lib.process.ProcessTools;
|
||||
@ -43,7 +43,7 @@ import jdk.test.lib.compiler.InMemoryJavaCompiler;
|
||||
|
||||
public class invokespecialTests {
|
||||
|
||||
public static void runTest(String classFileVersion, String option) throws Exception {
|
||||
public static void runTest(String classFileVersion, String option) throws Throwable {
|
||||
System.out.println("\ninvokespecial invocation tests, option: " + option +
|
||||
", class file version: " + classFileVersion);
|
||||
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(false, "-Xmx128M", option,
|
||||
@ -63,7 +63,8 @@ public class invokespecialTests {
|
||||
System.out.println(
|
||||
"\nAlso note that passing --dump to invokespecial.Generator will" +
|
||||
" dump the generated classes (for debugging purposes).\n");
|
||||
System.exit(1);
|
||||
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2019, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -34,7 +34,7 @@
|
||||
* shared/ByteArrayClassLoader.java shared/Checker.java shared/GenericClassGenerator.java
|
||||
* @compile invokevirtual/Checker.java invokevirtual/ClassGenerator.java invokevirtual/Generator.java
|
||||
*
|
||||
* @run main/othervm/timeout=1800 invokevirtualTests
|
||||
* @run driver/timeout=1800 invokevirtualTests
|
||||
*/
|
||||
|
||||
import jdk.test.lib.process.ProcessTools;
|
||||
@ -43,7 +43,7 @@ import jdk.test.lib.compiler.InMemoryJavaCompiler;
|
||||
|
||||
public class invokevirtualTests {
|
||||
|
||||
public static void runTest(String classFileVersion, String option) throws Exception {
|
||||
public static void runTest(String classFileVersion, String option) throws Throwable {
|
||||
System.out.println("\ninvokevirtual invocation tests, option: " + option +
|
||||
", class file version: " + classFileVersion);
|
||||
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(false, "-Xmx128M", option,
|
||||
@ -63,7 +63,8 @@ public class invokevirtualTests {
|
||||
System.out.println(
|
||||
"\nAlso note that passing --dump to invokevirtual.Generator will" +
|
||||
" dump the generated classes (for debugging purposes).\n");
|
||||
System.exit(1);
|
||||
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -30,7 +30,7 @@
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* java.management
|
||||
* @build TestForName
|
||||
* @run main LoadClassNegative
|
||||
* @run driver LoadClassNegative
|
||||
*/
|
||||
|
||||
import java.io.File;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -30,7 +30,7 @@
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* java.management
|
||||
* jdk.jartool/sun.tools.jar
|
||||
* @run main LongBCP
|
||||
* @run driver LongBCP
|
||||
*/
|
||||
|
||||
import java.io.File;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -29,7 +29,7 @@ import jdk.test.lib.process.OutputAnalyzer;
|
||||
* @requires vm.bits == 64 & vm.opt.final.UseCompressedOops == true
|
||||
* @bug 8087291
|
||||
* @library /test/lib
|
||||
* @run main/othervm MaxMetaspaceSizeTest
|
||||
* @run driver MaxMetaspaceSizeTest
|
||||
*/
|
||||
|
||||
public class MaxMetaspaceSizeTest {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -29,6 +29,7 @@
|
||||
* @library /test/lib
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* java.management
|
||||
* @run driver CheckForProperDetailStackTrace
|
||||
*/
|
||||
|
||||
import jdk.test.lib.Platform;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -28,6 +28,7 @@
|
||||
* @library /test/lib
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* java.management
|
||||
* @run driver CommandLineDetail
|
||||
*/
|
||||
|
||||
import jdk.test.lib.process.ProcessTools;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -28,6 +28,7 @@
|
||||
* @library /test/lib
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* java.management
|
||||
* @run driver CommandLineEmptyArgument
|
||||
*/
|
||||
|
||||
import jdk.test.lib.process.ProcessTools;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -28,6 +28,7 @@
|
||||
* @library /test/lib
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* java.management
|
||||
* @run driver CommandLineInvalidArgument
|
||||
*/
|
||||
|
||||
import jdk.test.lib.process.ProcessTools;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -28,6 +28,7 @@
|
||||
* @library /test/lib
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* java.management
|
||||
* @run driver CommandLineSummary
|
||||
*/
|
||||
|
||||
import jdk.test.lib.process.ProcessTools;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -28,6 +28,7 @@
|
||||
* @library /test/lib
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* java.management
|
||||
* @run driver CommandLineTurnOffNMT
|
||||
*/
|
||||
|
||||
import jdk.test.lib.process.ProcessTools;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -28,7 +28,7 @@
|
||||
* @library /test/lib
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* java.management
|
||||
* @run main JcmdWithNMTDisabled 1
|
||||
* @run driver JcmdWithNMTDisabled 1
|
||||
*/
|
||||
|
||||
import jdk.test.lib.process.ProcessTools;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2014, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2014, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -29,7 +29,7 @@
|
||||
* @library /test/lib
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* java.management
|
||||
* @run main NMTWithCDS
|
||||
* @run driver NMTWithCDS
|
||||
*/
|
||||
|
||||
import jdk.test.lib.process.ProcessTools;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -28,6 +28,7 @@
|
||||
* @summary Verify PrintNMTStatistics on normal JVM exit for detail and summary tracking level
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /test/lib
|
||||
* @run driver PrintNMTStatistics
|
||||
*/
|
||||
|
||||
import jdk.test.lib.process.ProcessTools;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -28,6 +28,7 @@
|
||||
* @library /test/lib
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* java.management
|
||||
* @run driver PrintNMTStatisticsWithNMTDisabled
|
||||
*/
|
||||
|
||||
import jdk.test.lib.process.ProcessTools;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2014, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -28,7 +28,7 @@
|
||||
* @library /test/lib
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* java.management
|
||||
* @run main PerfMemDestroy
|
||||
* @run driver PerfMemDestroy
|
||||
*/
|
||||
|
||||
import java.io.File;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -28,7 +28,7 @@ import jdk.test.lib.process.OutputAnalyzer;
|
||||
* @test PrintStringTableStatsTest
|
||||
* @bug 8211821
|
||||
* @library /test/lib
|
||||
* @run main PrintStringTableStatsTest
|
||||
* @run driver PrintStringTableStatsTest
|
||||
*/
|
||||
|
||||
public class PrintStringTableStatsTest {
|
||||
|
@ -31,6 +31,7 @@ import jdk.test.lib.process.*;
|
||||
* @library /test/lib
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* java.management
|
||||
* @run driver TestAbortOnVMOperationTimeout
|
||||
*/
|
||||
|
||||
public class TestAbortOnVMOperationTimeout {
|
||||
|
@ -32,6 +32,7 @@ import jdk.test.lib.process.*;
|
||||
* @library /test/lib
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* java.management
|
||||
* @run driver TestAbortVMOnSafepointTimeout
|
||||
*/
|
||||
|
||||
public class TestAbortVMOnSafepointTimeout {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -30,7 +30,7 @@
|
||||
* @library /test/lib
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* java.management
|
||||
* @run main TooSmallStackSize
|
||||
* @run driver TooSmallStackSize
|
||||
*/
|
||||
|
||||
/*
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -28,7 +28,7 @@
|
||||
* @modules java.base/jdk.internal.misc:open
|
||||
* @modules java.base/java.lang:open
|
||||
* @library /test/lib
|
||||
* @run main TestMaxJavaStackTraceDepth runTest
|
||||
* @run driver TestMaxJavaStackTraceDepth runTest
|
||||
*/
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -29,7 +29,7 @@
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* java.management
|
||||
* @requires os.family == "solaris" | os.family == "linux" | os.family == "mac"
|
||||
* @run main XCheckJSig
|
||||
* @run driver XCheckJSig
|
||||
*/
|
||||
|
||||
import java.io.File;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -29,6 +29,7 @@
|
||||
* @library /test/lib
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* java.management
|
||||
* @run driver MaxMetaspaceSize
|
||||
*/
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
@ -29,7 +29,7 @@
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* java.management
|
||||
* @compile LambdaMath.jcod
|
||||
* @run main ClassFileParserBug
|
||||
* @run driver ClassFileParserBug
|
||||
*/
|
||||
|
||||
import java.io.File;
|
||||
|
@ -29,7 +29,7 @@
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* java.management
|
||||
* @compile emptynumbootstrapmethods1.jcod emptynumbootstrapmethods2.jcod
|
||||
* @run main TestEmptyBootstrapMethodsAttr
|
||||
* @run driver TestEmptyBootstrapMethodsAttr
|
||||
*/
|
||||
|
||||
import java.io.File;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -29,7 +29,7 @@
|
||||
* @library /test/lib
|
||||
* @compile CondyUsesIndyBSM.jcod
|
||||
* @compile IndyUsesCondyBSM.jcod
|
||||
* @run main/othervm -Xverify:all BadBSMUseTest
|
||||
* @run driver BadBSMUseTest
|
||||
*/
|
||||
|
||||
import jdk.test.lib.process.ProcessTools;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -30,7 +30,7 @@
|
||||
* @compile CondyUseLDC_W.jasm
|
||||
* @compile CondyBadLDC2_W.jasm
|
||||
* @compile CondyBadLDC.jasm
|
||||
* @run main/othervm -Xverify:all CondyLDCTest
|
||||
* @run driver CondyLDCTest
|
||||
*/
|
||||
|
||||
import jdk.test.lib.process.ProcessTools;
|
||||
@ -41,14 +41,16 @@ public class CondyLDCTest {
|
||||
public static void main(String args[]) throws Throwable {
|
||||
// 1. Test a ldc_w instruction can be used with condy's which generate
|
||||
// loadable constants of the following types: byte, char, short, float, integer, boolean.
|
||||
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("CondyUseLDC_W");
|
||||
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-Xverify:all",
|
||||
"CondyUseLDC_W");
|
||||
OutputAnalyzer oa = new OutputAnalyzer(pb.start());
|
||||
oa.shouldNotContain("VerifyError");
|
||||
oa.shouldHaveExitValue(0);
|
||||
|
||||
// 2. Test ldc2_w of a condy which returns a dynamically generated
|
||||
// float constant, generates a VerifyError.
|
||||
pb = ProcessTools.createJavaProcessBuilder("CondyBadLDC2_W");
|
||||
pb = ProcessTools.createJavaProcessBuilder("-Xverify:all",
|
||||
"CondyBadLDC2_W");
|
||||
oa = new OutputAnalyzer(pb.start());
|
||||
oa.shouldContain("java.lang.VerifyError: Illegal type at constant pool entry");
|
||||
oa.shouldContain("CondyBadLDC2_W.F()F @0: ldc2_w");
|
||||
@ -56,7 +58,8 @@ public class CondyLDCTest {
|
||||
|
||||
// 3. Test a ldc of a condy which returns a dynamically generated
|
||||
// double constant, generates a VerifyError.
|
||||
pb = ProcessTools.createJavaProcessBuilder("CondyBadLDC");
|
||||
pb = ProcessTools.createJavaProcessBuilder("-Xverify:all",
|
||||
"CondyBadLDC");
|
||||
oa = new OutputAnalyzer(pb.start());
|
||||
oa.shouldContain("java.lang.VerifyError: Illegal type at constant pool entry");
|
||||
oa.shouldContain("CondyBadLDC.D()D @0: ldc");
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -28,7 +28,7 @@
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /test/lib
|
||||
* @compile CondyNewInvokeSpecial.jasm
|
||||
* @run main/othervm -Xverify:all CondyNewInvokeSpecialTest
|
||||
* @run driver CondyNewInvokeSpecialTest
|
||||
*/
|
||||
|
||||
import jdk.test.lib.process.ProcessTools;
|
||||
@ -37,7 +37,8 @@ import jdk.test.lib.compiler.InMemoryJavaCompiler;
|
||||
|
||||
public class CondyNewInvokeSpecialTest {
|
||||
public static void main(String args[]) throws Throwable {
|
||||
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("CondyNewInvokeSpecial");
|
||||
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-Xverify:all",
|
||||
"CondyNewInvokeSpecial");
|
||||
OutputAnalyzer oa = new OutputAnalyzer(pb.start());
|
||||
oa.shouldContain("In CondyNewInvokeSpecial <init> method");
|
||||
oa.shouldHaveExitValue(0);
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2019, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -31,7 +31,7 @@
|
||||
* @compile TestEscapeThroughInvokeWithCondy$A.jasm
|
||||
* @compile TestEscapeThroughInvokeWithCondy.jasm
|
||||
* @compile TestEscapeCondy.java
|
||||
* @run main/othervm TestEscapeCondy
|
||||
* @run driver TestEscapeCondy
|
||||
*/
|
||||
|
||||
import jdk.test.lib.process.ProcessTools;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2019, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -29,7 +29,7 @@
|
||||
* @library /test/lib
|
||||
* @compile Example.jasm
|
||||
* @compile StaticInit.java
|
||||
* @run main/othervm TestInitException
|
||||
* @run driver TestInitException
|
||||
*/
|
||||
|
||||
import jdk.test.lib.process.ProcessTools;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -32,7 +32,7 @@ import jdk.test.lib.process.OutputAnalyzer;
|
||||
* @library /test/lib
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* java.management
|
||||
* @run main Options
|
||||
* @run driver Options
|
||||
*/
|
||||
public class Options {
|
||||
|
||||
|
@ -29,7 +29,7 @@
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* java.management
|
||||
* @compile DuplAttributes.jcod
|
||||
* @run main DuplAttributesTest
|
||||
* @run driver DuplAttributesTest
|
||||
*/
|
||||
|
||||
import java.io.File;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -26,7 +26,7 @@
|
||||
* @bug 8187436
|
||||
* @summary Test that getPackage() works with a class loaded via -Xbootclasspath/a.
|
||||
* @library /test/lib
|
||||
* @run main/othervm GetPackageXbootclasspath
|
||||
* @run driver GetPackageXbootclasspath
|
||||
*/
|
||||
|
||||
// This is a regression test for a bug with the exploded build but should pass
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -27,7 +27,7 @@
|
||||
* @modules java.base/jdk.internal.loader
|
||||
* java.logging
|
||||
* @library /test/lib
|
||||
* @run main/othervm GetSysPkgTest
|
||||
* @run driver GetSysPkgTest
|
||||
*/
|
||||
|
||||
import java.io.File;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -27,7 +27,7 @@
|
||||
* @library /test/lib
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* java.management
|
||||
* @run main ModulesTest
|
||||
* @run driver ModulesTest
|
||||
*/
|
||||
|
||||
import jdk.test.lib.process.OutputAnalyzer;
|
||||
|
@ -30,7 +30,7 @@
|
||||
* java.management
|
||||
* @build sun.hotspot.WhiteBox
|
||||
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
|
||||
* @run main ReadFromNoaccessArea
|
||||
* @run driver ReadFromNoaccessArea
|
||||
*/
|
||||
|
||||
import jdk.test.lib.Platform;
|
||||
|
@ -33,7 +33,7 @@
|
||||
* java.management
|
||||
* @build sun.hotspot.WhiteBox
|
||||
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
|
||||
* @run main ReserveMemory
|
||||
* @run driver ReserveMemory
|
||||
*/
|
||||
|
||||
import jdk.test.lib.process.ProcessTools;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -28,7 +28,7 @@
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /test/lib
|
||||
* @compile ClassLoaderNoUnnamedModule.java
|
||||
* @run main/othervm ClassLoaderNoUnnamedModuleTest
|
||||
* @run driver ClassLoaderNoUnnamedModuleTest
|
||||
*/
|
||||
|
||||
import jdk.test.lib.process.ProcessTools;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -27,6 +27,7 @@
|
||||
* @summary Test that the VM ignores explicitly specified module internal properties.
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /test/lib
|
||||
* @run driver IgnoreModulePropertiesTest
|
||||
*/
|
||||
|
||||
import jdk.test.lib.process.OutputAnalyzer;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -28,6 +28,7 @@
|
||||
* options but accumulates --add-module values.
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /test/lib
|
||||
* @run driver ModuleOptionsTest
|
||||
*/
|
||||
|
||||
import jdk.test.lib.process.OutputAnalyzer;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -27,6 +27,7 @@
|
||||
* @summary Test warnings for ignored properties.
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /test/lib
|
||||
* @run driver ModuleOptionsWarn
|
||||
*/
|
||||
|
||||
import java.util.Map;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -28,7 +28,7 @@
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /test/lib
|
||||
* @compile ../CompilerUtils.java
|
||||
* @run main/othervm ExportModuleStressTest
|
||||
* @run driver ExportModuleStressTest
|
||||
*/
|
||||
|
||||
import java.nio.file.Path;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -31,7 +31,7 @@
|
||||
* @compile ModuleSameCLMain.java
|
||||
* @compile ModuleNonBuiltinCLMain.java
|
||||
* @compile CustomSystemClassLoader.java
|
||||
* @run main/othervm ModuleStress
|
||||
* @run driver ModuleStress
|
||||
*/
|
||||
|
||||
import jdk.test.lib.process.ProcessTools;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -28,7 +28,7 @@
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /test/lib
|
||||
* @compile ../CompilerUtils.java
|
||||
* @run main/othervm ModuleStressGC
|
||||
* @run driver ModuleStressGC
|
||||
*/
|
||||
|
||||
import java.nio.file.Path;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -27,7 +27,7 @@
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /test/lib
|
||||
* @compile PatchModule2DirsMain.java
|
||||
* @run main PatchModule2Dirs
|
||||
* @run driver PatchModule2Dirs
|
||||
*/
|
||||
|
||||
import jdk.test.lib.compiler.InMemoryJavaCompiler;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -29,7 +29,7 @@
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* jdk.jartool/sun.tools.jar
|
||||
* @build PatchModuleMain
|
||||
* @run main PatchModuleCDS
|
||||
* @run driver PatchModuleCDS
|
||||
*/
|
||||
|
||||
import jdk.test.lib.compiler.InMemoryJavaCompiler;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -26,6 +26,7 @@
|
||||
* @summary VM exit initialization results if java.base is specificed more than once to --patch-module.
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /test/lib
|
||||
* @run driver PatchModuleDupJavaBase
|
||||
*/
|
||||
|
||||
import jdk.test.lib.process.OutputAnalyzer;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -26,6 +26,7 @@
|
||||
* @summary Module system initialization exception results if a module is specificed twice to --patch-module.
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /test/lib
|
||||
* @run driver PatchModuleDupModule
|
||||
*/
|
||||
|
||||
import jdk.test.lib.process.OutputAnalyzer;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -28,7 +28,7 @@
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /test/lib
|
||||
* @compile PatchModuleMain.java
|
||||
* @run main PatchModuleJavaBase
|
||||
* @run driver PatchModuleJavaBase
|
||||
*/
|
||||
|
||||
import jdk.test.lib.compiler.InMemoryJavaCompiler;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -28,7 +28,7 @@
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /test/lib
|
||||
* @compile PatchModuleMain.java
|
||||
* @run main PatchModuleTest
|
||||
* @run driver PatchModuleTest
|
||||
*/
|
||||
|
||||
import jdk.test.lib.compiler.InMemoryJavaCompiler;
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user