Skip to content
This repository was archived by the owner on Sep 2, 2022. It is now read-only.

Commit 5b8c51f

Browse files
committed
8268539: several serviceability/sa tests should be run in driver mode
Backport-of: 78cb677
1 parent 7400789 commit 5b8c51f

23 files changed

+40
-40
lines changed

test/hotspot/jtreg/serviceability/sa/CDSJMapClstats.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2018, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -27,7 +27,7 @@
2727
* @summary Test the jhsdb jmap -clstats command with CDS enabled
2828
* @requires vm.hasSA & vm.cds
2929
* @library /test/lib
30-
* @run main/othervm/timeout=2400 CDSJMapClstats
30+
* @run driver/timeout=2400 CDSJMapClstats
3131
*/
3232

3333
import java.util.stream.Collectors;

test/hotspot/jtreg/serviceability/sa/ClhsdbDumpclass.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -39,7 +39,7 @@
3939
* @summary Test clhsdb dumpclass command
4040
* @requires vm.hasSA
4141
* @library /test/lib
42-
* @run main/othervm ClhsdbDumpclass
42+
* @run driver ClhsdbDumpclass
4343
*/
4444

4545
public class ClhsdbDumpclass {
@@ -70,8 +70,8 @@ public static void main(String[] args) throws Exception {
7070
// Run javap on the generated class file to make sure it's valid.
7171
JDKToolLauncher launcher = JDKToolLauncher.createUsingTestJDK("javap");
7272
launcher.addVMArgs(Utils.getTestJavaOpts());
73-
launcher.addToolArg(APP_DOT_CLASSNAME);
74-
System.out.println("> javap " + APP_DOT_CLASSNAME);
73+
launcher.addToolArg(classFile.toString());
74+
System.out.println("> javap " + classFile.toString());
7575
List<String> cmdStringList = Arrays.asList(launcher.getCommand());
7676
ProcessBuilder pb = new ProcessBuilder(cmdStringList);
7777
Process javap = pb.start();

test/hotspot/jtreg/serviceability/sa/ClhsdbFlags.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -37,7 +37,7 @@
3737
* @summary Test clhsdb flags command
3838
* @requires vm.hasSA
3939
* @library /test/lib
40-
* @run main/othervm ClhsdbFlags
40+
* @run driver ClhsdbFlags
4141
*/
4242

4343
public class ClhsdbFlags {

test/hotspot/jtreg/serviceability/sa/ClhsdbJstackXcompStress.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
33
* Copyright (c) 2019, Red Hat Inc. All rights reserved.
44
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
55
*
@@ -38,7 +38,7 @@
3838
* @requires vm.hasSA
3939
* @requires vm.opt.DeoptimizeALot != true
4040
* @library /test/lib
41-
* @run main/othervm ClhsdbJstackXcompStress
41+
* @run driver ClhsdbJstackXcompStress
4242
*/
4343
public class ClhsdbJstackXcompStress {
4444

test/hotspot/jtreg/serviceability/sa/DeadlockDetectionTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2015, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -28,7 +28,7 @@
2828
* @library /test/lib
2929
* @modules java.base/jdk.internal.misc
3030
* @modules java.management
31-
* @run main DeadlockDetectionTest
31+
* @run driver DeadlockDetectionTest
3232
*/
3333

3434
import java.util.stream.Collectors;

test/hotspot/jtreg/serviceability/sa/JhsdbThreadInfoTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -31,7 +31,7 @@
3131
* @test
3232
* @requires vm.hasSA
3333
* @library /test/lib
34-
* @run main JhsdbThreadInfoTest
34+
* @run driver JhsdbThreadInfoTest
3535
*/
3636
public class JhsdbThreadInfoTest {
3737

test/hotspot/jtreg/serviceability/sa/TestCpoolForInvokeDynamic.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -52,7 +52,7 @@
5252
* jdk.hotspot.agent/sun.jvm.hotspot.oops
5353
* jdk.hotspot.agent/sun.jvm.hotspot.debugger
5454
* jdk.hotspot.agent/sun.jvm.hotspot.ui.classbrowser
55-
* @run main TestCpoolForInvokeDynamic
55+
* @run driver TestCpoolForInvokeDynamic
5656
*/
5757

5858
public class TestCpoolForInvokeDynamic {

test/hotspot/jtreg/serviceability/sa/TestDefaultMethods.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2015, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -50,7 +50,7 @@
5050
* jdk.hotspot.agent/sun.jvm.hotspot.utilities
5151
* jdk.hotspot.agent/sun.jvm.hotspot.oops
5252
* jdk.hotspot.agent/sun.jvm.hotspot.debugger
53-
* @run main TestDefaultMethods
53+
* @run driver TestDefaultMethods
5454
*/
5555

5656
public class TestDefaultMethods {

test/hotspot/jtreg/serviceability/sa/TestHeapDumpForInvokeDynamic.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -48,7 +48,7 @@
4848
* jdk.hotspot.agent/sun.jvm.hotspot.utilities
4949
* jdk.hotspot.agent/sun.jvm.hotspot.oops
5050
* jdk.hotspot.agent/sun.jvm.hotspot.debugger
51-
* @run main/othervm TestHeapDumpForInvokeDynamic
51+
* @run driver TestHeapDumpForInvokeDynamic
5252
*/
5353

5454
public class TestHeapDumpForInvokeDynamic {

test/hotspot/jtreg/serviceability/sa/TestJhsdbJstackLineNumbers.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -39,7 +39,7 @@
3939
* @requires os.arch=="amd64" | os.arch=="x86_64"
4040
* @requires os.family=="windows" | os.family == "linux" | os.family == "mac"
4141
* @library /test/lib
42-
* @run main/othervm TestJhsdbJstackLineNumbers
42+
* @run driver TestJhsdbJstackLineNumbers
4343
*/
4444

4545
/*

0 commit comments

Comments
 (0)