Skip to content
This repository was archived by the owner on Sep 2, 2022. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/hotspot/jtreg/serviceability/sa/CDSJMapClstats.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -27,7 +27,7 @@
* @summary Test the jhsdb jmap -clstats command with CDS enabled
* @requires vm.hasSA & vm.cds
* @library /test/lib
* @run main/othervm/timeout=2400 CDSJMapClstats
* @run driver/timeout=2400 CDSJMapClstats
*/

import java.util.stream.Collectors;
Expand Down
8 changes: 4 additions & 4 deletions test/hotspot/jtreg/serviceability/sa/ClhsdbDumpclass.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -39,7 +39,7 @@
* @summary Test clhsdb dumpclass command
* @requires vm.hasSA
* @library /test/lib
* @run main/othervm ClhsdbDumpclass
* @run driver ClhsdbDumpclass
*/

public class ClhsdbDumpclass {
Expand Down Expand Up @@ -70,8 +70,8 @@ public static void main(String[] args) throws Exception {
// Run javap on the generated class file to make sure it's valid.
JDKToolLauncher launcher = JDKToolLauncher.createUsingTestJDK("javap");
launcher.addVMArgs(Utils.getTestJavaOpts());
launcher.addToolArg(APP_DOT_CLASSNAME);
System.out.println("> javap " + APP_DOT_CLASSNAME);
launcher.addToolArg(classFile.toString());
System.out.println("> javap " + classFile.toString());
List<String> cmdStringList = Arrays.asList(launcher.getCommand());
ProcessBuilder pb = new ProcessBuilder(cmdStringList);
Process javap = pb.start();
Expand Down
4 changes: 2 additions & 2 deletions test/hotspot/jtreg/serviceability/sa/ClhsdbFlags.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -37,7 +37,7 @@
* @summary Test clhsdb flags command
* @requires vm.hasSA
* @library /test/lib
* @run main/othervm ClhsdbFlags
* @run driver ClhsdbFlags
*/

public class ClhsdbFlags {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2019, Red Hat Inc. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
Expand Down Expand Up @@ -38,7 +38,7 @@
* @requires vm.hasSA
* @requires vm.opt.DeoptimizeALot != true
* @library /test/lib
* @run main/othervm ClhsdbJstackXcompStress
* @run driver ClhsdbJstackXcompStress
*/
public class ClhsdbJstackXcompStress {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2015, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -28,7 +28,7 @@
* @library /test/lib
* @modules java.base/jdk.internal.misc
* @modules java.management
* @run main DeadlockDetectionTest
* @run driver DeadlockDetectionTest
*/

import java.util.stream.Collectors;
Expand Down
4 changes: 2 additions & 2 deletions test/hotspot/jtreg/serviceability/sa/JhsdbThreadInfoTest.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -31,7 +31,7 @@
* @test
* @requires vm.hasSA
* @library /test/lib
* @run main JhsdbThreadInfoTest
* @run driver JhsdbThreadInfoTest
*/
public class JhsdbThreadInfoTest {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -52,7 +52,7 @@
* jdk.hotspot.agent/sun.jvm.hotspot.oops
* jdk.hotspot.agent/sun.jvm.hotspot.debugger
* jdk.hotspot.agent/sun.jvm.hotspot.ui.classbrowser
* @run main TestCpoolForInvokeDynamic
* @run driver TestCpoolForInvokeDynamic
*/

public class TestCpoolForInvokeDynamic {
Expand Down
4 changes: 2 additions & 2 deletions test/hotspot/jtreg/serviceability/sa/TestDefaultMethods.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2015, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -50,7 +50,7 @@
* jdk.hotspot.agent/sun.jvm.hotspot.utilities
* jdk.hotspot.agent/sun.jvm.hotspot.oops
* jdk.hotspot.agent/sun.jvm.hotspot.debugger
* @run main TestDefaultMethods
* @run driver TestDefaultMethods
*/

public class TestDefaultMethods {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -48,7 +48,7 @@
* jdk.hotspot.agent/sun.jvm.hotspot.utilities
* jdk.hotspot.agent/sun.jvm.hotspot.oops
* jdk.hotspot.agent/sun.jvm.hotspot.debugger
* @run main/othervm TestHeapDumpForInvokeDynamic
* @run driver TestHeapDumpForInvokeDynamic
*/

public class TestHeapDumpForInvokeDynamic {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -39,7 +39,7 @@
* @requires os.arch=="amd64" | os.arch=="x86_64"
* @requires os.family=="windows" | os.family == "linux" | os.family == "mac"
* @library /test/lib
* @run main/othervm TestJhsdbJstackLineNumbers
* @run driver TestJhsdbJstackLineNumbers
*/

/*
Expand Down
4 changes: 2 additions & 2 deletions test/hotspot/jtreg/serviceability/sa/TestJhsdbJstackLock.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -31,7 +31,7 @@
* @test
* @requires vm.hasSA
* @library /test/lib
* @run main/othervm TestJhsdbJstackLock
* @run driver TestJhsdbJstackLock
*/

public class TestJhsdbJstackLock {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -38,7 +38,7 @@
* @bug 8208091
* @requires (os.family == "linux") & (vm.hasSA)
* @library /test/lib
* @run main/othervm TestJhsdbJstackMixed
* @run driver TestJhsdbJstackMixed
*/
public class TestJhsdbJstackMixed {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
* @modules jdk.hotspot.agent/sun.jvm.hotspot
* jdk.hotspot.agent/sun.jvm.hotspot.oops
* jdk.hotspot.agent/sun.jvm.hotspot.runtime
* @run main TestObjectMonitorIterate
* @run driver TestObjectMonitorIterate
*/

public class TestObjectMonitorIterate {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -44,7 +44,7 @@
* @modules java.base/jdk.internal.misc
* jdk.hotspot.agent/sun.jvm.hotspot
* jdk.hotspot.agent/sun.jvm.hotspot.utilities
* @run main/othervm TestRevPtrsForInvokeDynamic
* @run driver TestRevPtrsForInvokeDynamic
*/

public class TestRevPtrsForInvokeDynamic {
Expand Down
4 changes: 2 additions & 2 deletions test/hotspot/jtreg/serviceability/sa/TestSysProps.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -38,7 +38,7 @@
* @summary Test "jhsdb jinfo --sysprops", "jinfo -sysprops", and clhsdb "sysprops" commands
* @requires vm.hasSA
* @library /test/lib
* @run main/othervm TestSysProps
* @run driver TestSysProps
*/

public class TestSysProps {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2013, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -49,7 +49,7 @@
* java.management/sun.management
* jdk.internal.jvmstat/sun.jvmstat.monitor
* @build JMapHProfLargeHeapProc
* @run main JMapHProfLargeHeapTest
* @run driver JMapHProfLargeHeapTest
*/

public class JMapHProfLargeHeapTest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
* @requires vm.hasSA
* @requires os.family != "windows"
* @library /test/lib
* @run main/othervm ClhsdbAttachToDebugServer
* @run driver ClhsdbAttachToDebugServer
*/

public class ClhsdbAttachToDebugServer {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
* @requires vm.hasSA
* @requires os.family != "windows"
* @library /test/lib
* @run main/othervm ClhsdbTestConnectArgument
* @run driver ClhsdbTestConnectArgument
*/

public class ClhsdbTestConnectArgument {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* @modules java.base/jdk.internal.misc
* @library /test/lib
*
* @run main/othervm DebugdConnectTest
* @run driver DebugdConnectTest
*/

import java.io.IOException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
* @requires vm.hasSA
* @requires os.family != "windows"
* @library /test/lib
* @run main/othervm DisableRegistryTest
* @run driver DisableRegistryTest
*/

public class DisableRegistryTest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
* @requires vm.hasSA
* @requires (os.family != "windows") & (os.family != "mac")
* @library /test/lib
* @run main/othervm PmapOnDebugdTest
* @run driver PmapOnDebugdTest
*/

public class PmapOnDebugdTest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
* @requires vm.hasSA
* @requires os.family != "windows"
* @library /test/lib
* @run main/othervm RunCommandOnServerTest
* @run driver RunCommandOnServerTest
*/

public class RunCommandOnServerTest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
* @modules java.base/jdk.internal.misc
* @library /test/lib
*
* @run main/othervm SADebugDTest
* @run driver SADebugDTest
*/

import java.util.concurrent.TimeUnit;
Expand Down