8243945: use driver mode in runtime tests

Reviewed-by: dholmes, dcubed, gziemski
This commit is contained in:
Igor Ignatyev 2020-04-29 19:51:45 -07:00
parent e93cd7ed3c
commit 46fe7e303b
109 changed files with 243 additions and 194 deletions

View 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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -28,7 +28,7 @@
* @library /test/lib * @library /test/lib
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @run main BootstrapRedefine * @run driver BootstrapRedefine
*/ */
import jdk.test.lib.compiler.InMemoryJavaCompiler; import jdk.test.lib.compiler.InMemoryJavaCompiler;

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * 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 * @summary Uninitialized system property jdk.boot.class.path.append causes SIGSEGV
* @library /test/lib * @library /test/lib
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* @run driver BootClassPathAppend
*/ */
import jdk.test.lib.process.ProcessTools; import jdk.test.lib.process.ProcessTools;

View 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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -27,7 +27,7 @@
* @library /test/lib * @library /test/lib
* @compile TestPkg/LambdaMetafactory.java * @compile TestPkg/LambdaMetafactory.java
* @compile TestPkg/Lambda.jasm * @compile TestPkg/Lambda.jasm
* @run main TestLambdaExceptionInInitializer * @run driver TestLambdaExceptionInInitializer
*/ */
import jdk.test.lib.process.ProcessTools; import jdk.test.lib.process.ProcessTools;

View 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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -29,7 +29,7 @@
* @library /test/lib * @library /test/lib
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @run main CDSCompressedKPtrs * @run driver CDSCompressedKPtrs
*/ */
import jdk.test.lib.Platform; import jdk.test.lib.Platform;

View 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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -29,7 +29,7 @@
* @library /test/lib * @library /test/lib
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @run main XShareAuto * @run driver XShareAuto
*/ */
import jdk.test.lib.Platform; import jdk.test.lib.Platform;

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -29,7 +29,7 @@
* @compile BadHelloWorld.jcod * @compile BadHelloWorld.jcod
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @run main FormatCheckingTest * @run driver FormatCheckingTest
*/ */
import jdk.test.lib.process.OutputAnalyzer; import jdk.test.lib.process.OutputAnalyzer;

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -37,7 +37,7 @@
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.desktop * java.desktop
* java.management * java.management
* @run main JsrRewriting * @run driver JsrRewriting
*/ */
import jdk.test.lib.JDKToolFinder; import jdk.test.lib.JDKToolFinder;

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -37,7 +37,7 @@
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.desktop * java.desktop
* java.management * java.management
* @run main OomWhileParsingRepeatedJsr * @run driver OomWhileParsingRepeatedJsr
*/ */
import jdk.test.lib.JDKToolFinder; import jdk.test.lib.JDKToolFinder;

View file

@ -31,7 +31,7 @@
* classes in method throws clauses. * classes in method throws clauses.
* @library /test/lib * @library /test/lib
* @compile CheckedExceptions.jcod * @compile CheckedExceptions.jcod
* @run main TestCheckedExceptions * @run driver TestCheckedExceptions
*/ */
import jdk.test.lib.process.ProcessTools; import jdk.test.lib.process.ProcessTools;

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -28,6 +28,7 @@
* @library /test/lib * @library /test/lib
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @run driver BooleanFlagWithInvalidValue
*/ */
import jdk.test.lib.process.ProcessTools; import jdk.test.lib.process.ProcessTools;

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -28,6 +28,7 @@
* @library /test/lib * @library /test/lib
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @run driver CompilerConfigFileWarning
*/ */
import java.io.PrintWriter; import java.io.PrintWriter;

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -28,6 +28,7 @@
* @library /test/lib * @library /test/lib
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @run driver ConfigFileParsing
*/ */
import java.io.PrintWriter; import java.io.PrintWriter;

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -28,6 +28,7 @@
* @library /test/lib * @library /test/lib
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @run driver ConfigFileWarning
*/ */
import java.io.PrintWriter; import java.io.PrintWriter;

View 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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -28,6 +28,7 @@
* @library /test/lib * @library /test/lib
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @run driver DoubleFlagWithIntegerValue
*/ */
import jdk.test.lib.process.ProcessTools; import jdk.test.lib.process.ProcessTools;

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -28,6 +28,7 @@
* @library /test/lib * @library /test/lib
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @run driver FlagWithInvalidValue
*/ */
import jdk.test.lib.process.ProcessTools; import jdk.test.lib.process.ProcessTools;

View 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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * 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 * @library /test/lib
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @run main IgnoreUnrecognizedVMOptions * @run driver IgnoreUnrecognizedVMOptions
*/ */
public class IgnoreUnrecognizedVMOptions { public class IgnoreUnrecognizedVMOptions {

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -28,6 +28,7 @@
* @library /test/lib * @library /test/lib
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @run driver NonBooleanFlagWithInvalidBooleanPrefix
*/ */
import jdk.test.lib.process.ProcessTools; import jdk.test.lib.process.ProcessTools;

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * 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. * @summary Newly obsolete command line options should still give useful error messages when used improperly.
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* @library /test/lib * @library /test/lib
* @run driver ObsoleteFlagErrorMessage
*/ */
import jdk.test.lib.process.ProcessTools; import jdk.test.lib.process.ProcessTools;

View 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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -30,7 +30,7 @@
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* jdk.management * jdk.management
* @run main TestJcmdOutput * @run driver TestJcmdOutput
*/ */
import jdk.test.lib.Asserts; import jdk.test.lib.Asserts;

View 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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -32,7 +32,7 @@
* java.management * java.management
* jdk.attach/sun.tools.attach * jdk.attach/sun.tools.attach
* jdk.internal.jvmstat/sun.jvmstat.monitor * jdk.internal.jvmstat/sun.jvmstat.monitor
* @run main/othervm/timeout=1800 TestOptionsWithRanges 1 of 10 * @run driver/timeout=1800 TestOptionsWithRanges 1 of 10
*/ */
/* /*
* @test * @test
@ -43,7 +43,7 @@
* java.management * java.management
* jdk.attach/sun.tools.attach * jdk.attach/sun.tools.attach
* jdk.internal.jvmstat/sun.jvmstat.monitor * jdk.internal.jvmstat/sun.jvmstat.monitor
* @run main/othervm/timeout=1800 TestOptionsWithRanges 2 of 10 * @run driver/timeout=1800 TestOptionsWithRanges 2 of 10
*/ */
/* /*
* @test * @test
@ -54,7 +54,7 @@
* java.management * java.management
* jdk.attach/sun.tools.attach * jdk.attach/sun.tools.attach
* jdk.internal.jvmstat/sun.jvmstat.monitor * jdk.internal.jvmstat/sun.jvmstat.monitor
* @run main/othervm/timeout=1800 TestOptionsWithRanges 3 of 10 * @run driver/timeout=1800 TestOptionsWithRanges 3 of 10
*/ */
/* /*
* @test * @test
@ -65,7 +65,7 @@
* java.management * java.management
* jdk.attach/sun.tools.attach * jdk.attach/sun.tools.attach
* jdk.internal.jvmstat/sun.jvmstat.monitor * jdk.internal.jvmstat/sun.jvmstat.monitor
* @run main/othervm/timeout=1800 TestOptionsWithRanges 4 of 10 * @run driver/timeout=1800 TestOptionsWithRanges 4 of 10
*/ */
/* /*
* @test * @test
@ -76,7 +76,7 @@
* java.management * java.management
* jdk.attach/sun.tools.attach * jdk.attach/sun.tools.attach
* jdk.internal.jvmstat/sun.jvmstat.monitor * jdk.internal.jvmstat/sun.jvmstat.monitor
* @run main/othervm/timeout=1800 TestOptionsWithRanges 5 of 10 * @run driver/timeout=1800 TestOptionsWithRanges 5 of 10
*/ */
/* /*
* @test * @test
@ -87,7 +87,7 @@
* java.management * java.management
* jdk.attach/sun.tools.attach * jdk.attach/sun.tools.attach
* jdk.internal.jvmstat/sun.jvmstat.monitor * jdk.internal.jvmstat/sun.jvmstat.monitor
* @run main/othervm/timeout=1800 TestOptionsWithRanges 6 of 10 * @run driver/timeout=1800 TestOptionsWithRanges 6 of 10
*/ */
/* /*
* @test * @test
@ -98,7 +98,7 @@
* java.management * java.management
* jdk.attach/sun.tools.attach * jdk.attach/sun.tools.attach
* jdk.internal.jvmstat/sun.jvmstat.monitor * jdk.internal.jvmstat/sun.jvmstat.monitor
* @run main/othervm/timeout=1800 TestOptionsWithRanges 7 of 10 * @run driver/timeout=1800 TestOptionsWithRanges 7 of 10
*/ */
/* /*
* @test * @test
@ -109,7 +109,7 @@
* java.management * java.management
* jdk.attach/sun.tools.attach * jdk.attach/sun.tools.attach
* jdk.internal.jvmstat/sun.jvmstat.monitor * jdk.internal.jvmstat/sun.jvmstat.monitor
* @run main/othervm/timeout=1800 TestOptionsWithRanges 8 of 10 * @run driver/timeout=1800 TestOptionsWithRanges 8 of 10
*/ */
/* /*
* @test * @test
@ -120,7 +120,7 @@
* java.management * java.management
* jdk.attach/sun.tools.attach * jdk.attach/sun.tools.attach
* jdk.internal.jvmstat/sun.jvmstat.monitor * jdk.internal.jvmstat/sun.jvmstat.monitor
* @run main/othervm/timeout=1800 TestOptionsWithRanges 9 of 10 * @run driver/timeout=1800 TestOptionsWithRanges 9 of 10
*/ */
/* /*
* @test * @test
@ -131,7 +131,7 @@
* java.management * java.management
* jdk.attach/sun.tools.attach * jdk.attach/sun.tools.attach
* jdk.internal.jvmstat/sun.jvmstat.monitor * 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 // --- end auto-generated

View file

@ -35,7 +35,7 @@ for i in {1..10}; do
* java.management * java.management
* jdk.attach/sun.tools.attach * jdk.attach/sun.tools.attach
* jdk.internal.jvmstat/sun.jvmstat.monitor * jdk.internal.jvmstat/sun.jvmstat.monitor
* @run main/othervm/timeout=1800 TestOptionsWithRanges $i of 10 * @run driver/timeout=1800 TestOptionsWithRanges $i of 10
*/ */
EOF EOF
done done

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -29,6 +29,7 @@
* @library /test/lib * @library /test/lib
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @run driver TestHexArguments
*/ */
import java.io.File; import java.io.File;

View 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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -28,7 +28,7 @@
* @library /test/lib * @library /test/lib
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* @modules java.management * @modules java.management
* @run main TestLongUnrecognizedVMOption * @run driver TestLongUnrecognizedVMOption
*/ */
import jdk.test.lib.process.OutputAnalyzer; import jdk.test.lib.process.OutputAnalyzer;

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -28,7 +28,7 @@
* @library /test/lib * @library /test/lib
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @run main TestVMOptions * @run driver TestVMOptions
*/ */
import jdk.test.lib.process.ProcessTools; import jdk.test.lib.process.ProcessTools;

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -28,6 +28,7 @@
* @library /test/lib * @library /test/lib
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @run driver TraceExceptionsTest
*/ */
import jdk.test.lib.process.ProcessTools; import jdk.test.lib.process.ProcessTools;

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -28,6 +28,7 @@
* @library /test/lib * @library /test/lib
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @run driver UnrecognizedVMOption
*/ */
import jdk.test.lib.process.ProcessTools; import jdk.test.lib.process.ProcessTools;

View 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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * 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. * @summary Test that various alias options correctly set the target options. See aliased_jvm_flags in arguments.cpp.
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* @library /test/lib * @library /test/lib
* @run driver VMAliasOptions
*/ */
public class VMAliasOptions { public class VMAliasOptions {

View file

@ -31,6 +31,7 @@ import jdk.test.lib.cli.*;
* @summary Test that various options are deprecated. See deprecated_jvm_flags in arguments.cpp. * @summary Test that various options are deprecated. See deprecated_jvm_flags in arguments.cpp.
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* @library /test/lib * @library /test/lib
* @run driver VMDeprecatedOptions
*/ */
public class VMDeprecatedOptions { public class VMDeprecatedOptions {

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -28,6 +28,7 @@
* @library /test/lib * @library /test/lib
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @run driver VMOptionWarning
*/ */
import jdk.test.lib.process.ProcessTools; import jdk.test.lib.process.ProcessTools;

View 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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -28,7 +28,7 @@
* @library /test/lib * @library /test/lib
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* @modules jdk.management * @modules jdk.management
* @run main TestVMOptionsFile * @run driver TestVMOptionsFile
*/ */
import java.io.File; import java.io.File;

View 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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -29,7 +29,7 @@
* @library /test/lib * @library /test/lib
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @run main CompressedClassPointers * @run driver CompressedClassPointers
*/ */
import jdk.test.lib.Platform; import jdk.test.lib.Platform;

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -30,7 +30,7 @@
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @requires vm.bits == 64 * @requires vm.bits == 64
* @run main CompressedKlassPointerAndOops * @run driver CompressedKlassPointerAndOops
*/ */
import jdk.test.lib.Platform; import jdk.test.lib.Platform;

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -28,7 +28,7 @@
* @library /test/lib * @library /test/lib
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @run main ObjectAlignment * @run driver ObjectAlignment
*/ */
import jdk.test.lib.Platform; import jdk.test.lib.Platform;

View file

@ -28,7 +28,7 @@
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* @build sun.hotspot.WhiteBox * @build sun.hotspot.WhiteBox
* @run driver ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* @run main CleanProtectionDomain * @run driver CleanProtectionDomain
*/ */
import java.security.ProtectionDomain; import java.security.ProtectionDomain;

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -31,7 +31,7 @@
* @build jdk.test.lib.Utils * @build jdk.test.lib.Utils
* jdk.test.lib.util.JarUtils * jdk.test.lib.util.JarUtils
* @build ClassForName ProtectionDomainCacheTest * @build ClassForName ProtectionDomainCacheTest
* @run main/othervm/policy=test.policy -Djava.security.manager ProtectionDomainCacheTest * @run driver ProtectionDomainCacheTest
*/ */
import java.net.URL; import java.net.URL;

View file

@ -29,7 +29,7 @@
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @compile EnclMethTest.jcod * @compile EnclMethTest.jcod
* @run main EnclMethodAttr * @run driver EnclMethodAttr
*/ */
import java.io.File; import java.io.File;

View 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. * Copyright (c) 2019, SAP. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
@ -31,6 +31,7 @@
* @library /test/lib * @library /test/lib
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* @requires (vm.debug == true) * @requires (vm.debug == true)
* @run driver ErrorFileOverwriteTest
*/ */
import jdk.test.lib.process.OutputAnalyzer; import jdk.test.lib.process.OutputAnalyzer;

View 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. * Copyright (c) 2019, SAP. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
@ -30,6 +30,7 @@
* @library /test/lib * @library /test/lib
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* @requires (vm.debug == true) * @requires (vm.debug == true)
* @run driver ErrorFileRedirectTest
*/ */
import jdk.test.lib.process.OutputAnalyzer; import jdk.test.lib.process.OutputAnalyzer;

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * 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. * @summary Nested ThreadsListHandle info should be in error handling output.
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* @library /test/lib * @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. // counters and confusing this test.
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder( ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(
"-XX:+UnlockDiagnosticVMOptions", "-XX:+UnlockDiagnosticVMOptions",
"-XX:+EnableThreadSMRStatistics",
"-Xmx100M", "-Xmx100M",
"-XX:ErrorHandlerTest=17", "-XX:ErrorHandlerTest=17",
"-XX:-CreateCoredumpOnCrash", "-XX:-CreateCoredumpOnCrash",

View 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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * 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 * @modules java.base/jdk.internal.misc
* @library /test/lib * @library /test/lib
* @author Thomas Stuefe (SAP) * @author Thomas Stuefe (SAP)
* @run driver SafeFetchInErrorHandlingTest
*/ */
public class SafeFetchInErrorHandlingTest { public class SafeFetchInErrorHandlingTest {

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -30,6 +30,7 @@
* @author Thomas Stuefe (SAP) * @author Thomas Stuefe (SAP)
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @run driver SecondaryErrorTest
*/ */
import java.io.BufferedReader; import java.io.BufferedReader;

View 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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -31,6 +31,7 @@
* @author Thomas Stuefe (SAP) * @author Thomas Stuefe (SAP)
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @run driver ShowRegistersOnAssertTest
*/ */
// Note: this test can only run on debug since it relies on VMError::controlled_crash() which // Note: this test can only run on debug since it relies on VMError::controlled_crash() which

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -28,7 +28,7 @@
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* @library /test/lib * @library /test/lib
* @requires vm.debug * @requires vm.debug
* @run main TestOnError * @run driver TestOnError
*/ */
import jdk.test.lib.process.ProcessTools; import jdk.test.lib.process.ProcessTools;

View 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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * 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> * @summary Test using single and multiple -XX:OnOutOfMemoryError=<cmd>
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* @library /test/lib * @library /test/lib
* @run main TestOnOutOfMemoryError * @run driver TestOnOutOfMemoryError
* @bug 8078470 8177522 * @bug 8078470 8177522
*/ */

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * 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. * @summary ThreadsListHandle info should be in error handling output.
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* @library /test/lib * @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. // counters and confusing this test.
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder( ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(
"-XX:+UnlockDiagnosticVMOptions", "-XX:+UnlockDiagnosticVMOptions",
"-XX:+EnableThreadSMRStatistics",
"-Xmx100M", "-Xmx100M",
"-XX:ErrorHandlerTest=16", "-XX:ErrorHandlerTest=16",
"-XX:-CreateCoredumpOnCrash", "-XX:-CreateCoredumpOnCrash",

View 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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * 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 * @modules java.base/jdk.internal.misc
* @library /test/lib * @library /test/lib
* @requires (vm.debug == true) & (os.family != "windows") * @requires (vm.debug == true) & (os.family != "windows")
* @run driver TimeoutInErrorHandlingTest
* @author Thomas Stuefe (SAP) * @author Thomas Stuefe (SAP)
*/ */

View file

@ -31,6 +31,7 @@
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* @requires (vm.debug == true) * @requires (vm.debug == true)
* @requires os.family == "linux" * @requires os.family == "linux"
* @run driver VeryEarlyAssertTest
*/ */
import java.io.BufferedReader; import java.io.BufferedReader;

View 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.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * 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 * invokevirtual/Checker.java invokevirtual/ClassGenerator.java invokevirtual/Generator.java
* invokeinterface/Checker.java invokeinterface/ClassGenerator.java invokeinterface/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; import jdk.test.lib.process.ProcessTools;
@ -45,7 +45,7 @@ import jdk.test.lib.compiler.InMemoryJavaCompiler;
public class invocationC1Tests { 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 + System.out.println("\nC1 invocation tests, Tests: " + whichTests +
", class file version: " + classFileVersion); ", class file version: " + classFileVersion);
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(false, "-Xmx128M", ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(false, "-Xmx128M",
@ -66,7 +66,8 @@ public class invocationC1Tests {
System.out.println( System.out.println(
"\nAlso note that passing --dump to invoke*.Generator will" + "\nAlso note that passing --dump to invoke*.Generator will" +
" dump the generated classes (for debugging purposes).\n"); " dump the generated classes (for debugging purposes).\n");
System.exit(1);
throw e;
} }
} }

View 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.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * 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 * invokevirtual/Checker.java invokevirtual/ClassGenerator.java invokevirtual/Generator.java
* invokeinterface/Checker.java invokeinterface/ClassGenerator.java invokeinterface/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; import jdk.test.lib.process.ProcessTools;
@ -46,7 +46,7 @@ import jdk.test.lib.compiler.InMemoryJavaCompiler;
public class invocationGraalTests { 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 + System.out.println("\nGraal invocation tests, Tests: " + whichTests +
", class file version: " + classFileVersion); ", class file version: " + classFileVersion);
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(false, "-Xmx128M", ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(false, "-Xmx128M",
@ -67,7 +67,8 @@ public class invocationGraalTests {
System.out.println( System.out.println(
"\nAlso note that passing --dump to invoke*.Generator will" + "\nAlso note that passing --dump to invoke*.Generator will" +
" dump the generated classes (for debugging purposes).\n"); " dump the generated classes (for debugging purposes).\n");
System.exit(1);
throw e;
} }
} }

View 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.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -35,7 +35,7 @@
* @compile invokeinterface/Checker.java invokeinterface/ClassGenerator.java * @compile invokeinterface/Checker.java invokeinterface/ClassGenerator.java
* invokeinterface/Generator.java * invokeinterface/Generator.java
* *
* @run main/othervm/timeout=1800 invokeinterfaceTests * @run driver/timeout=1800 invokeinterfaceTests
*/ */
import jdk.test.lib.process.ProcessTools; import jdk.test.lib.process.ProcessTools;
@ -44,7 +44,7 @@ import jdk.test.lib.compiler.InMemoryJavaCompiler;
public class invokeinterfaceTests { 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 + System.out.println("\ninvokeinterface invocation tests, option: " + option +
", class file version: " + classFileVersion); ", class file version: " + classFileVersion);
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(false, "-Xmx128M", option, ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(false, "-Xmx128M", option,
@ -65,7 +65,7 @@ public class invokeinterfaceTests {
"\nAlso note that passing --dump to invokeinterface.Generator will" + "\nAlso note that passing --dump to invokeinterface.Generator will" +
" dump the generated classes (for debugging purposes).\n"); " dump the generated classes (for debugging purposes).\n");
System.exit(1); throw e;
} }
} }

View 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.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * 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 * shared/ByteArrayClassLoader.java shared/Checker.java shared/GenericClassGenerator.java
* @compile invokespecial/Checker.java invokespecial/ClassGenerator.java invokespecial/Generator.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; import jdk.test.lib.process.ProcessTools;
@ -43,7 +43,7 @@ import jdk.test.lib.compiler.InMemoryJavaCompiler;
public class invokespecialTests { 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 + System.out.println("\ninvokespecial invocation tests, option: " + option +
", class file version: " + classFileVersion); ", class file version: " + classFileVersion);
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(false, "-Xmx128M", option, ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(false, "-Xmx128M", option,
@ -63,7 +63,8 @@ public class invokespecialTests {
System.out.println( System.out.println(
"\nAlso note that passing --dump to invokespecial.Generator will" + "\nAlso note that passing --dump to invokespecial.Generator will" +
" dump the generated classes (for debugging purposes).\n"); " dump the generated classes (for debugging purposes).\n");
System.exit(1);
throw e;
} }
} }

View 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.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * 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 * shared/ByteArrayClassLoader.java shared/Checker.java shared/GenericClassGenerator.java
* @compile invokevirtual/Checker.java invokevirtual/ClassGenerator.java invokevirtual/Generator.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; import jdk.test.lib.process.ProcessTools;
@ -43,7 +43,7 @@ import jdk.test.lib.compiler.InMemoryJavaCompiler;
public class invokevirtualTests { 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 + System.out.println("\ninvokevirtual invocation tests, option: " + option +
", class file version: " + classFileVersion); ", class file version: " + classFileVersion);
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(false, "-Xmx128M", option, ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(false, "-Xmx128M", option,
@ -63,7 +63,8 @@ public class invokevirtualTests {
System.out.println( System.out.println(
"\nAlso note that passing --dump to invokevirtual.Generator will" + "\nAlso note that passing --dump to invokevirtual.Generator will" +
" dump the generated classes (for debugging purposes).\n"); " dump the generated classes (for debugging purposes).\n");
System.exit(1);
throw e;
} }
} }

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -30,7 +30,7 @@
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @build TestForName * @build TestForName
* @run main LoadClassNegative * @run driver LoadClassNegative
*/ */
import java.io.File; import java.io.File;

View 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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -30,7 +30,7 @@
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* jdk.jartool/sun.tools.jar * jdk.jartool/sun.tools.jar
* @run main LongBCP * @run driver LongBCP
*/ */
import java.io.File; import java.io.File;

View 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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * 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 * @requires vm.bits == 64 & vm.opt.final.UseCompressedOops == true
* @bug 8087291 * @bug 8087291
* @library /test/lib * @library /test/lib
* @run main/othervm MaxMetaspaceSizeTest * @run driver MaxMetaspaceSizeTest
*/ */
public class MaxMetaspaceSizeTest { public class MaxMetaspaceSizeTest {

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -29,6 +29,7 @@
* @library /test/lib * @library /test/lib
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @run driver CheckForProperDetailStackTrace
*/ */
import jdk.test.lib.Platform; import jdk.test.lib.Platform;

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -28,6 +28,7 @@
* @library /test/lib * @library /test/lib
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @run driver CommandLineDetail
*/ */
import jdk.test.lib.process.ProcessTools; import jdk.test.lib.process.ProcessTools;

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -28,6 +28,7 @@
* @library /test/lib * @library /test/lib
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @run driver CommandLineEmptyArgument
*/ */
import jdk.test.lib.process.ProcessTools; import jdk.test.lib.process.ProcessTools;

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -28,6 +28,7 @@
* @library /test/lib * @library /test/lib
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @run driver CommandLineInvalidArgument
*/ */
import jdk.test.lib.process.ProcessTools; import jdk.test.lib.process.ProcessTools;

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -28,6 +28,7 @@
* @library /test/lib * @library /test/lib
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @run driver CommandLineSummary
*/ */
import jdk.test.lib.process.ProcessTools; import jdk.test.lib.process.ProcessTools;

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -28,6 +28,7 @@
* @library /test/lib * @library /test/lib
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @run driver CommandLineTurnOffNMT
*/ */
import jdk.test.lib.process.ProcessTools; import jdk.test.lib.process.ProcessTools;

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -28,7 +28,7 @@
* @library /test/lib * @library /test/lib
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @run main JcmdWithNMTDisabled 1 * @run driver JcmdWithNMTDisabled 1
*/ */
import jdk.test.lib.process.ProcessTools; import jdk.test.lib.process.ProcessTools;

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -29,7 +29,7 @@
* @library /test/lib * @library /test/lib
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @run main NMTWithCDS * @run driver NMTWithCDS
*/ */
import jdk.test.lib.process.ProcessTools; import jdk.test.lib.process.ProcessTools;

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * 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 * @summary Verify PrintNMTStatistics on normal JVM exit for detail and summary tracking level
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* @library /test/lib * @library /test/lib
* @run driver PrintNMTStatistics
*/ */
import jdk.test.lib.process.ProcessTools; import jdk.test.lib.process.ProcessTools;

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -28,6 +28,7 @@
* @library /test/lib * @library /test/lib
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @run driver PrintNMTStatisticsWithNMTDisabled
*/ */
import jdk.test.lib.process.ProcessTools; import jdk.test.lib.process.ProcessTools;

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -28,7 +28,7 @@
* @library /test/lib * @library /test/lib
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @run main PerfMemDestroy * @run driver PerfMemDestroy
*/ */
import java.io.File; import java.io.File;

View 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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * 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 * @test PrintStringTableStatsTest
* @bug 8211821 * @bug 8211821
* @library /test/lib * @library /test/lib
* @run main PrintStringTableStatsTest * @run driver PrintStringTableStatsTest
*/ */
public class PrintStringTableStatsTest { public class PrintStringTableStatsTest {

View file

@ -31,6 +31,7 @@ import jdk.test.lib.process.*;
* @library /test/lib * @library /test/lib
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @run driver TestAbortOnVMOperationTimeout
*/ */
public class TestAbortOnVMOperationTimeout { public class TestAbortOnVMOperationTimeout {

View file

@ -32,6 +32,7 @@ import jdk.test.lib.process.*;
* @library /test/lib * @library /test/lib
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @run driver TestAbortVMOnSafepointTimeout
*/ */
public class TestAbortVMOnSafepointTimeout { public class TestAbortVMOnSafepointTimeout {

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -30,7 +30,7 @@
* @library /test/lib * @library /test/lib
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @run main TooSmallStackSize * @run driver TooSmallStackSize
*/ */
/* /*

View 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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * 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/jdk.internal.misc:open
* @modules java.base/java.lang:open * @modules java.base/java.lang:open
* @library /test/lib * @library /test/lib
* @run main TestMaxJavaStackTraceDepth runTest * @run driver TestMaxJavaStackTraceDepth runTest
*/ */
import java.lang.reflect.Field; import java.lang.reflect.Field;

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -29,7 +29,7 @@
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @requires os.family == "solaris" | os.family == "linux" | os.family == "mac" * @requires os.family == "solaris" | os.family == "linux" | os.family == "mac"
* @run main XCheckJSig * @run driver XCheckJSig
*/ */
import java.io.File; import java.io.File;

View 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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -29,6 +29,7 @@
* @library /test/lib * @library /test/lib
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @run driver MaxMetaspaceSize
*/ */
import java.util.ArrayList; import java.util.ArrayList;

View file

@ -29,7 +29,7 @@
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @compile LambdaMath.jcod * @compile LambdaMath.jcod
* @run main ClassFileParserBug * @run driver ClassFileParserBug
*/ */
import java.io.File; import java.io.File;

View file

@ -29,7 +29,7 @@
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @compile emptynumbootstrapmethods1.jcod emptynumbootstrapmethods2.jcod * @compile emptynumbootstrapmethods1.jcod emptynumbootstrapmethods2.jcod
* @run main TestEmptyBootstrapMethodsAttr * @run driver TestEmptyBootstrapMethodsAttr
*/ */
import java.io.File; import java.io.File;

View 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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -29,7 +29,7 @@
* @library /test/lib * @library /test/lib
* @compile CondyUsesIndyBSM.jcod * @compile CondyUsesIndyBSM.jcod
* @compile IndyUsesCondyBSM.jcod * @compile IndyUsesCondyBSM.jcod
* @run main/othervm -Xverify:all BadBSMUseTest * @run driver BadBSMUseTest
*/ */
import jdk.test.lib.process.ProcessTools; import jdk.test.lib.process.ProcessTools;

View 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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -30,7 +30,7 @@
* @compile CondyUseLDC_W.jasm * @compile CondyUseLDC_W.jasm
* @compile CondyBadLDC2_W.jasm * @compile CondyBadLDC2_W.jasm
* @compile CondyBadLDC.jasm * @compile CondyBadLDC.jasm
* @run main/othervm -Xverify:all CondyLDCTest * @run driver CondyLDCTest
*/ */
import jdk.test.lib.process.ProcessTools; import jdk.test.lib.process.ProcessTools;
@ -41,14 +41,16 @@ public class CondyLDCTest {
public static void main(String args[]) throws Throwable { public static void main(String args[]) throws Throwable {
// 1. Test a ldc_w instruction can be used with condy's which generate // 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. // 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()); OutputAnalyzer oa = new OutputAnalyzer(pb.start());
oa.shouldNotContain("VerifyError"); oa.shouldNotContain("VerifyError");
oa.shouldHaveExitValue(0); oa.shouldHaveExitValue(0);
// 2. Test ldc2_w of a condy which returns a dynamically generated // 2. Test ldc2_w of a condy which returns a dynamically generated
// float constant, generates a VerifyError. // float constant, generates a VerifyError.
pb = ProcessTools.createJavaProcessBuilder("CondyBadLDC2_W"); pb = ProcessTools.createJavaProcessBuilder("-Xverify:all",
"CondyBadLDC2_W");
oa = new OutputAnalyzer(pb.start()); oa = new OutputAnalyzer(pb.start());
oa.shouldContain("java.lang.VerifyError: Illegal type at constant pool entry"); oa.shouldContain("java.lang.VerifyError: Illegal type at constant pool entry");
oa.shouldContain("CondyBadLDC2_W.F()F @0: ldc2_w"); 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 // 3. Test a ldc of a condy which returns a dynamically generated
// double constant, generates a VerifyError. // double constant, generates a VerifyError.
pb = ProcessTools.createJavaProcessBuilder("CondyBadLDC"); pb = ProcessTools.createJavaProcessBuilder("-Xverify:all",
"CondyBadLDC");
oa = new OutputAnalyzer(pb.start()); oa = new OutputAnalyzer(pb.start());
oa.shouldContain("java.lang.VerifyError: Illegal type at constant pool entry"); oa.shouldContain("java.lang.VerifyError: Illegal type at constant pool entry");
oa.shouldContain("CondyBadLDC.D()D @0: ldc"); oa.shouldContain("CondyBadLDC.D()D @0: ldc");

View 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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -28,7 +28,7 @@
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* @library /test/lib * @library /test/lib
* @compile CondyNewInvokeSpecial.jasm * @compile CondyNewInvokeSpecial.jasm
* @run main/othervm -Xverify:all CondyNewInvokeSpecialTest * @run driver CondyNewInvokeSpecialTest
*/ */
import jdk.test.lib.process.ProcessTools; import jdk.test.lib.process.ProcessTools;
@ -37,7 +37,8 @@ import jdk.test.lib.compiler.InMemoryJavaCompiler;
public class CondyNewInvokeSpecialTest { public class CondyNewInvokeSpecialTest {
public static void main(String args[]) throws Throwable { 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()); OutputAnalyzer oa = new OutputAnalyzer(pb.start());
oa.shouldContain("In CondyNewInvokeSpecial <init> method"); oa.shouldContain("In CondyNewInvokeSpecial <init> method");
oa.shouldHaveExitValue(0); oa.shouldHaveExitValue(0);

View 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.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -31,7 +31,7 @@
* @compile TestEscapeThroughInvokeWithCondy$A.jasm * @compile TestEscapeThroughInvokeWithCondy$A.jasm
* @compile TestEscapeThroughInvokeWithCondy.jasm * @compile TestEscapeThroughInvokeWithCondy.jasm
* @compile TestEscapeCondy.java * @compile TestEscapeCondy.java
* @run main/othervm TestEscapeCondy * @run driver TestEscapeCondy
*/ */
import jdk.test.lib.process.ProcessTools; import jdk.test.lib.process.ProcessTools;

View 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.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -29,7 +29,7 @@
* @library /test/lib * @library /test/lib
* @compile Example.jasm * @compile Example.jasm
* @compile StaticInit.java * @compile StaticInit.java
* @run main/othervm TestInitException * @run driver TestInitException
*/ */
import jdk.test.lib.process.ProcessTools; import jdk.test.lib.process.ProcessTools;

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * 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 * @library /test/lib
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @run main Options * @run driver Options
*/ */
public class Options { public class Options {

View file

@ -29,7 +29,7 @@
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @compile DuplAttributes.jcod * @compile DuplAttributes.jcod
* @run main DuplAttributesTest * @run driver DuplAttributesTest
*/ */
import java.io.File; import java.io.File;

View 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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -26,7 +26,7 @@
* @bug 8187436 * @bug 8187436
* @summary Test that getPackage() works with a class loaded via -Xbootclasspath/a. * @summary Test that getPackage() works with a class loaded via -Xbootclasspath/a.
* @library /test/lib * @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 // This is a regression test for a bug with the exploded build but should pass

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -27,7 +27,7 @@
* @modules java.base/jdk.internal.loader * @modules java.base/jdk.internal.loader
* java.logging * java.logging
* @library /test/lib * @library /test/lib
* @run main/othervm GetSysPkgTest * @run driver GetSysPkgTest
*/ */
import java.io.File; import java.io.File;

View 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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -27,7 +27,7 @@
* @library /test/lib * @library /test/lib
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @run main ModulesTest * @run driver ModulesTest
*/ */
import jdk.test.lib.process.OutputAnalyzer; import jdk.test.lib.process.OutputAnalyzer;

View file

@ -30,7 +30,7 @@
* java.management * java.management
* @build sun.hotspot.WhiteBox * @build sun.hotspot.WhiteBox
* @run driver ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* @run main ReadFromNoaccessArea * @run driver ReadFromNoaccessArea
*/ */
import jdk.test.lib.Platform; import jdk.test.lib.Platform;

View file

@ -33,7 +33,7 @@
* java.management * java.management
* @build sun.hotspot.WhiteBox * @build sun.hotspot.WhiteBox
* @run driver ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* @run main ReserveMemory * @run driver ReserveMemory
*/ */
import jdk.test.lib.process.ProcessTools; import jdk.test.lib.process.ProcessTools;

View 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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -28,7 +28,7 @@
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* @library /test/lib * @library /test/lib
* @compile ClassLoaderNoUnnamedModule.java * @compile ClassLoaderNoUnnamedModule.java
* @run main/othervm ClassLoaderNoUnnamedModuleTest * @run driver ClassLoaderNoUnnamedModuleTest
*/ */
import jdk.test.lib.process.ProcessTools; import jdk.test.lib.process.ProcessTools;

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * 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. * @summary Test that the VM ignores explicitly specified module internal properties.
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* @library /test/lib * @library /test/lib
* @run driver IgnoreModulePropertiesTest
*/ */
import jdk.test.lib.process.OutputAnalyzer; import jdk.test.lib.process.OutputAnalyzer;

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -28,6 +28,7 @@
* options but accumulates --add-module values. * options but accumulates --add-module values.
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* @library /test/lib * @library /test/lib
* @run driver ModuleOptionsTest
*/ */
import jdk.test.lib.process.OutputAnalyzer; import jdk.test.lib.process.OutputAnalyzer;

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -27,6 +27,7 @@
* @summary Test warnings for ignored properties. * @summary Test warnings for ignored properties.
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* @library /test/lib * @library /test/lib
* @run driver ModuleOptionsWarn
*/ */
import java.util.Map; import java.util.Map;

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -28,7 +28,7 @@
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* @library /test/lib * @library /test/lib
* @compile ../CompilerUtils.java * @compile ../CompilerUtils.java
* @run main/othervm ExportModuleStressTest * @run driver ExportModuleStressTest
*/ */
import java.nio.file.Path; import java.nio.file.Path;

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -31,7 +31,7 @@
* @compile ModuleSameCLMain.java * @compile ModuleSameCLMain.java
* @compile ModuleNonBuiltinCLMain.java * @compile ModuleNonBuiltinCLMain.java
* @compile CustomSystemClassLoader.java * @compile CustomSystemClassLoader.java
* @run main/othervm ModuleStress * @run driver ModuleStress
*/ */
import jdk.test.lib.process.ProcessTools; import jdk.test.lib.process.ProcessTools;

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -28,7 +28,7 @@
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* @library /test/lib * @library /test/lib
* @compile ../CompilerUtils.java * @compile ../CompilerUtils.java
* @run main/othervm ModuleStressGC * @run driver ModuleStressGC
*/ */
import java.nio.file.Path; import java.nio.file.Path;

View 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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -27,7 +27,7 @@
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* @library /test/lib * @library /test/lib
* @compile PatchModule2DirsMain.java * @compile PatchModule2DirsMain.java
* @run main PatchModule2Dirs * @run driver PatchModule2Dirs
*/ */
import jdk.test.lib.compiler.InMemoryJavaCompiler; import jdk.test.lib.compiler.InMemoryJavaCompiler;

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -29,7 +29,7 @@
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* jdk.jartool/sun.tools.jar * jdk.jartool/sun.tools.jar
* @build PatchModuleMain * @build PatchModuleMain
* @run main PatchModuleCDS * @run driver PatchModuleCDS
*/ */
import jdk.test.lib.compiler.InMemoryJavaCompiler; import jdk.test.lib.compiler.InMemoryJavaCompiler;

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * 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. * @summary VM exit initialization results if java.base is specificed more than once to --patch-module.
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* @library /test/lib * @library /test/lib
* @run driver PatchModuleDupJavaBase
*/ */
import jdk.test.lib.process.OutputAnalyzer; import jdk.test.lib.process.OutputAnalyzer;

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * 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. * @summary Module system initialization exception results if a module is specificed twice to --patch-module.
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* @library /test/lib * @library /test/lib
* @run driver PatchModuleDupModule
*/ */
import jdk.test.lib.process.OutputAnalyzer; import jdk.test.lib.process.OutputAnalyzer;

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -28,7 +28,7 @@
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* @library /test/lib * @library /test/lib
* @compile PatchModuleMain.java * @compile PatchModuleMain.java
* @run main PatchModuleJavaBase * @run driver PatchModuleJavaBase
*/ */
import jdk.test.lib.compiler.InMemoryJavaCompiler; import jdk.test.lib.compiler.InMemoryJavaCompiler;

View 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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -28,7 +28,7 @@
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* @library /test/lib * @library /test/lib
* @compile PatchModuleMain.java * @compile PatchModuleMain.java
* @run main PatchModuleTest * @run driver PatchModuleTest
*/ */
import jdk.test.lib.compiler.InMemoryJavaCompiler; import jdk.test.lib.compiler.InMemoryJavaCompiler;

Some files were not shown because too many files have changed in this diff Show more