Skip to content
Permalink
Browse files
8242295: Change ThreadMBean in vmTestbase/nsk/monitoring to ThreadMXBean
Reviewed-by: iignatyev
  • Loading branch information
lmesnik committed Apr 8, 2020
1 parent ac8d420 commit 3a6249d0c7ba8eb9fd2e67a8a51fdb36519265d9
Show file tree
Hide file tree
Showing 40 changed files with 107 additions and 108 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2007, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2007, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -21,7 +21,7 @@
* questions.
*/

package nsk.monitoring.ThreadMBean.findMonitorDeadlockedThreads;
package nsk.monitoring.ThreadMXBean.findMonitorDeadlockedThreads;

import java.io.*;
import nsk.share.*;
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -30,14 +30,14 @@
* VM Testbase readme:
* DESCRIPTION
* The test checks that
* ThreadMBean.findMonitorDeadlockedThreads()
* ThreadMXBean.findMonitorDeadlockedThreads()
* does not return the id of the currect thread, since it is not deadlocked.
* The test implements direct access to the metrics.
* COMMENT
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm nsk.monitoring.ThreadMBean.findMonitorDeadlockedThreads.find001
* @run main/othervm nsk.monitoring.ThreadMXBean.findMonitorDeadlockedThreads.find001
*/

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -30,7 +30,7 @@
* VM Testbase readme:
* DESCRIPTION
* The test checks that
* ThreadMBean.findMonitorDeadlockedThreads()
* ThreadMXBean.findMonitorDeadlockedThreads()
* does not return the id of the currect thread, since it is not deadlocked.
* The test implements access to the metrics via default MBean server.
* COMMENT
@@ -39,7 +39,7 @@
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm
* nsk.monitoring.ThreadMBean.findMonitorDeadlockedThreads.find001
* nsk.monitoring.ThreadMXBean.findMonitorDeadlockedThreads.find001
* -testMode=server
*/

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -30,7 +30,7 @@
* VM Testbase readme:
* DESCRIPTION
* The test checks that
* ThreadMBean.findMonitorDeadlockedThreads()
* ThreadMXBean.findMonitorDeadlockedThreads()
* does not return the id of the currect thread, since it is not deadlocked.
* The test implements access to the metrics via custom MBean server.
* COMMENT
@@ -39,7 +39,7 @@
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm
* nsk.monitoring.ThreadMBean.findMonitorDeadlockedThreads.find001
* nsk.monitoring.ThreadMXBean.findMonitorDeadlockedThreads.find001
* -testMode=server
* -MBeanServer=custom
*/
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -30,14 +30,14 @@
* VM Testbase readme:
* DESCRIPTION
* The test checks that
* ThreadMBean.findMonitorDeadlockedThreads()
* ThreadMXBean.findMonitorDeadlockedThreads()
* does not return the id of the currect thread, since it is not deadlocked.
* The test implements access to the metrics via default MBean server proxy.
* COMMENT
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm nsk.monitoring.ThreadMBean.findMonitorDeadlockedThreads.find001 -testMode=proxy
* @run main/othervm nsk.monitoring.ThreadMXBean.findMonitorDeadlockedThreads.find001 -testMode=proxy
*/

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -30,7 +30,7 @@
* VM Testbase readme:
* DESCRIPTION
* The test checks that
* ThreadMBean.findMonitorDeadlockedThreads()
* ThreadMXBean.findMonitorDeadlockedThreads()
* does not return the id of the currect thread, since it is not deadlocked.
* The test implements access to the metrics via custom MBean server proxy.
* COMMENT
@@ -39,7 +39,7 @@
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm
* nsk.monitoring.ThreadMBean.findMonitorDeadlockedThreads.find001
* nsk.monitoring.ThreadMXBean.findMonitorDeadlockedThreads.find001
* -testMode=proxy
* -MBeanServer=custom
*/
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2007, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2007, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -21,7 +21,7 @@
* questions.
*/

package nsk.monitoring.ThreadMBean.isCurrentThreadCpuTimeSupported;
package nsk.monitoring.ThreadMXBean.isCurrentThreadCpuTimeSupported;

import java.io.*;
import nsk.share.*;
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -30,7 +30,7 @@
* VM Testbase readme:
* DESCRIPTION
* The test checks that
* ThreadMBean.isCurrentThreadCpuTimeSupported()
* ThreadMXBean.isCurrentThreadCpuTimeSupported()
* method returns true. The test performs directly access to management
* metrics within the same JVM.
* Note, that the test is correct ONLY against Sun's Hotspot VM. This
@@ -43,6 +43,6 @@
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm nsk.monitoring.ThreadMBean.isCurrentThreadCpuTimeSupported.curthcputime001
* @run main/othervm nsk.monitoring.ThreadMXBean.isCurrentThreadCpuTimeSupported.curthcputime001
*/

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -30,7 +30,7 @@
* VM Testbase readme:
* DESCRIPTION
* The test checks that
* ThreadMBean.isCurrentThreadCpuTimeSupported()
* ThreadMXBean.isCurrentThreadCpuTimeSupported()
* method returns true. The test performs access to management metrics
* through default MBeanServer.
* Note, that the test is correct ONLY against Sun's Hotspot VM. This
@@ -42,7 +42,7 @@
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm
* nsk.monitoring.ThreadMBean.isCurrentThreadCpuTimeSupported.curthcputime001
* nsk.monitoring.ThreadMXBean.isCurrentThreadCpuTimeSupported.curthcputime001
* -testMode=server
*/

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -30,7 +30,7 @@
* VM Testbase readme:
* DESCRIPTION
* The test checks that
* ThreadMBean.isCurrentThreadCpuTimeSupported()
* ThreadMXBean.isCurrentThreadCpuTimeSupported()
* method returns true. The test performs access to management metrics
* through custom MBeanServer (developed and saved in
* $TESTBASE/src/nsk/monitoring/share).
@@ -43,7 +43,7 @@
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm
* nsk.monitoring.ThreadMBean.isCurrentThreadCpuTimeSupported.curthcputime001
* nsk.monitoring.ThreadMXBean.isCurrentThreadCpuTimeSupported.curthcputime001
* -testMode=server
* -MBeanServer=custom
*/
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -30,7 +30,7 @@
* VM Testbase readme:
* DESCRIPTION
* The test checks that
* ThreadMBean.isCurrentThreadCpuTimeSupported()
* ThreadMXBean.isCurrentThreadCpuTimeSupported()
* method returns true. The test performs access to management metrics
* through default MBeanServer proxy.
* Note, that the test is correct ONLY against Sun's Hotspot VM. This
@@ -42,7 +42,7 @@
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm
* nsk.monitoring.ThreadMBean.isCurrentThreadCpuTimeSupported.curthcputime001
* nsk.monitoring.ThreadMXBean.isCurrentThreadCpuTimeSupported.curthcputime001
* -testMode=proxy
*/

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -30,7 +30,7 @@
* VM Testbase readme:
* DESCRIPTION
* The test checks that
* ThreadMBean.isCurrentThreadCpuTimeSupported()
* ThreadMXBean.isCurrentThreadCpuTimeSupported()
* method returns true. The test performs access to management metrics
* through custom MBeanServer proxy (developed and saved in
* $TESTBASE/src/nsk/monitoring/share).
@@ -43,7 +43,7 @@
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm
* nsk.monitoring.ThreadMBean.isCurrentThreadCpuTimeSupported.curthcputime001
* nsk.monitoring.ThreadMXBean.isCurrentThreadCpuTimeSupported.curthcputime001
* -testMode=proxy
* -MBeanServer=custom
*/
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2007, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2007, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -21,7 +21,7 @@
* questions.
*/

package nsk.monitoring.ThreadMBean.isThreadContentionMonitoringSupported;
package nsk.monitoring.ThreadMXBean.isThreadContentionMonitoringSupported;

import java.io.*;
import nsk.share.*;
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -30,7 +30,7 @@
* VM Testbase readme:
* DESCRIPTION
* The test checks that
* ThreadMBean.isThreadContentionMonitoringSupported()
* ThreadMXBean.isThreadContentionMonitoringSupported()
* method returns true. The test performs directly access to management
* metrics within the same JVM.
* Note, that the test is correct ONLY against Sun's Hotspot VM. This
@@ -44,6 +44,6 @@
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm
* nsk.monitoring.ThreadMBean.isThreadContentionMonitoringSupported.thcontmonitor001
* nsk.monitoring.ThreadMXBean.isThreadContentionMonitoringSupported.thcontmonitor001
*/

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -30,7 +30,7 @@
* VM Testbase readme:
* DESCRIPTION
* The test checks that
* ThreadMBean.isThreadContentionMonitoringSupported()
* ThreadMXBean.isThreadContentionMonitoringSupported()
* method returns true. The test performs access to management metrics
* through default MBeanServer.
* Note, that the test is correct ONLY against Sun's Hotspot VM. This
@@ -42,7 +42,7 @@
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm
* nsk.monitoring.ThreadMBean.isThreadContentionMonitoringSupported.thcontmonitor001
* nsk.monitoring.ThreadMXBean.isThreadContentionMonitoringSupported.thcontmonitor001
* -testMode=server
*/

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -30,7 +30,7 @@
* VM Testbase readme:
* DESCRIPTION
* The test checks that
* ThreadMBean.isThreadContentionMonitoringSupported()
* ThreadMXBean.isThreadContentionMonitoringSupported()
* method returns true. The test performs access to management metrics
* through custom MBeanServer (developed and saved in
* $TESTBASE/src/nsk/monitoring/share).
@@ -43,7 +43,7 @@
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm
* nsk.monitoring.ThreadMBean.isThreadContentionMonitoringSupported.thcontmonitor001
* nsk.monitoring.ThreadMXBean.isThreadContentionMonitoringSupported.thcontmonitor001
* -testMode=server
* -MBeanServer=custom
*/
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -30,7 +30,7 @@
* VM Testbase readme:
* DESCRIPTION
* The test checks that
* ThreadMBean.isThreadContentionMonitoringSupported()
* ThreadMXBean.isThreadContentionMonitoringSupported()
* method returns true. The test performs access to management metrics
* through default MBeanServer proxy.
* Note, that the test is correct ONLY against Sun's Hotspot VM. This
@@ -42,7 +42,7 @@
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm
* nsk.monitoring.ThreadMBean.isThreadContentionMonitoringSupported.thcontmonitor001
* nsk.monitoring.ThreadMXBean.isThreadContentionMonitoringSupported.thcontmonitor001
* -testMode=proxy
*/

0 comments on commit 3a6249d

Please sign in to comment.