Skip to content

Commit bac2e7f

Browse files
committedJun 12, 2020
8242328: Update mentions of ThreadMBean to ThreadMXBean
Reviewed-by: dholmes, iignatyev, sspitsyn
1 parent 8c90f4c commit bac2e7f

File tree

13 files changed

+20
-30
lines changed

13 files changed

+20
-30
lines changed
 

‎src/hotspot/share/classfile/vmSymbols.hpp

-6
Original file line numberDiff line numberDiff line change
@@ -598,12 +598,6 @@
598598
template(createGCNotification_name, "createGCNotification") \
599599
template(createGCNotification_signature, "(JLjava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/sun/management/GcInfo;)V") \
600600
template(createDiagnosticFrameworkNotification_name, "createDiagnosticFrameworkNotification") \
601-
template(createMemoryPoolMBean_name, "createMemoryPoolMBean") \
602-
template(createMemoryManagerMBean_name, "createMemoryManagerMBean") \
603-
template(createGarbageCollectorMBean_name, "createGarbageCollectorMBean") \
604-
template(createMemoryPoolMBean_signature, "(Ljava/lang/String;ZJJ)Ljava/lang/management/MemoryPoolMBean;") \
605-
template(createMemoryManagerMBean_signature, "(Ljava/lang/String;)Ljava/lang/management/MemoryManagerMBean;") \
606-
template(createGarbageCollectorMBean_signature, "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/management/GarbageCollectorMBean;") \
607601
template(trigger_name, "trigger") \
608602
template(clear_name, "clear") \
609603
template(trigger_method_signature, "(ILjava/lang/management/MemoryUsage;)V") \

‎src/hotspot/share/compiler/compileBroker.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@ void CompileBroker::compilation_init_phase1(Thread* THREAD) {
687687
// Start the compiler thread(s) and the sweeper thread
688688
init_compiler_sweeper_threads();
689689
// totalTime performance counter is always created as it is required
690-
// by the implementation of java.lang.management.CompilationMBean.
690+
// by the implementation of java.lang.management.CompilationMXBean.
691691
{
692692
// Ensure OOM leads to vm_exit_during_initialization.
693693
EXCEPTION_MARK;
@@ -2478,7 +2478,7 @@ void CompileBroker::collect_statistics(CompilerThread* thread, elapsedTimer time
24782478
// Compilation succeeded
24792479

24802480
// update compilation ticks - used by the implementation of
2481-
// java.lang.management.CompilationMBean
2481+
// java.lang.management.CompilationMXBean
24822482
_perf_total_compilation->inc(time.ticks());
24832483
_peak_compilation_time = time.milliseconds() > _peak_compilation_time ? time.milliseconds() : _peak_compilation_time;
24842484

‎src/java.management/share/classes/sun/management/HotspotThreadMBean.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2004, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2020, 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 @@ public interface HotspotThreadMBean {
5050
* @throws java.lang.UnsupportedOperationException if the Java virtual
5151
* machine does not support CPU time measurement.
5252
*
53-
* @see java.lang.management.ThreadMBean#isThreadCpuTimeSupported
53+
* @see java.lang.management.ThreadMXBean#isThreadCpuTimeSupported
5454
*/
5555
public java.util.Map<String,Long> getInternalThreadCpuTimes();
5656

‎src/jdk.management.agent/share/conf/management.properties

+3-3
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
#
4242
# This option enables thread contention monitoring if the
4343
# Java virtual machine supports such instrumentation.
44-
# Refer to the specification for the java.lang.management.ThreadMBean
44+
# Refer to the specification for the java.lang.management.ThreadMXBean
4545
# interface - see isThreadContentionMonitoringSupported() method.
4646
#
4747

@@ -228,7 +228,7 @@
228228
# com.sun.management.jmxremote.password.toHashes = true|false
229229
# Default for this property is true.
230230
# Specifies if passwords in the password file should be hashed or not.
231-
# If this property is true, and if the password file is writable, and if the
231+
# If this property is true, and if the password file is writable, and if the
232232
# system security policy allows writing into the password file,
233233
# all the clear passwords in the password file will be replaced by
234234
# their SHA3-512 hash when the file is read by the server
@@ -267,7 +267,7 @@
267267
# ################ Filter for ObjectInputStream #############################
268268
# com.sun.management.jmxremote.serial.filter.pattern=<filter-string>
269269
# A filter, if configured, is used by java.io.ObjectInputStream during
270-
# deserialization of parameters sent to the JMX default agent to validate the
270+
# deserialization of parameters sent to the JMX default agent to validate the
271271
# contents of the stream.
272272
# A filter is configured as a sequence of patterns, each pattern is either
273273
# matched against the name of a class in the stream or defines a limit.

‎src/jdk.management/share/native/libmanagement_ext/GarbageCollectorExtImpl.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2015, 2020, 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 @@ JNIEXPORT void JNICALL Java_com_sun_management_internal_GarbageCollectorExtImpl_
3131
(JNIEnv *env, jobject dummy, jobject gc,jboolean enabled) {
3232

3333
if (gc == NULL) {
34-
JNU_ThrowNullPointerException(env, "Invalid GarbageCollectorMBean");
34+
JNU_ThrowNullPointerException(env, "Invalid GarbageCollectorMXBean");
3535
return;
3636
}
3737
if((jmm_version > JMM_VERSION_1_2)

‎src/jdk.management/share/native/libmanagement_ext/GcInfoBuilder.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2020, 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
@@ -34,7 +34,7 @@ JNIEXPORT jint JNICALL Java_com_sun_management_internal_GcInfoBuilder_getNumGcEx
3434
jlong value;
3535

3636
if (gc == NULL) {
37-
JNU_ThrowNullPointerException(env, "Invalid GarbageCollectorMBean");
37+
JNU_ThrowNullPointerException(env, "Invalid GarbageCollectorMXBean");
3838
return 0;
3939
}
4040
value = jmm_interface->GetLongAttribute(env, gc,
@@ -55,7 +55,7 @@ JNIEXPORT void JNICALL Java_com_sun_management_internal_GcInfoBuilder_fillGcAttr
5555
jint i;
5656

5757
if (gc == NULL) {
58-
JNU_ThrowNullPointerException(env, "Invalid GarbageCollectorMBean");
58+
JNU_ThrowNullPointerException(env, "Invalid GarbageCollectorMXBean");
5959
return;
6060
}
6161

@@ -207,7 +207,7 @@ JNIEXPORT jobject JNICALL Java_com_sun_management_internal_GcInfoBuilder_getLast
207207
jvalue v;
208208

209209
if (gc == NULL) {
210-
JNU_ThrowNullPointerException(env, "Invalid GarbageCollectorMBean");
210+
JNU_ThrowNullPointerException(env, "Invalid GarbageCollectorMXBean");
211211
return 0;
212212
}
213213

‎test/hotspot/jtreg/vmTestbase/nsk/monitoring/CompilationMXBean/comptimemon001/comptimemon001.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
* VM Testbase readme:
3333
* DESCRIPTION
3434
* The test checks that
35-
* CompilationMBean.isCompilationTimeMonitoringSupported()
35+
* CompilationMXBean.isCompilationTimeMonitoringSupported()
3636
* method returns true. The test performs directly access to management
3737
* metrics within the same JVM.
3838
* Note, that the test is correct ONLY against Sun's Hotspot VM. This

‎test/hotspot/jtreg/vmTestbase/nsk/monitoring/CompilationMXBean/comptimemon002/TestDescription.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
* VM Testbase readme:
3232
* DESCRIPTION
3333
* The test checks that
34-
* CompilationMBean.isCompilationTimeMonitoringSupported()
34+
* CompilationMXBean.isCompilationTimeMonitoringSupported()
3535
* method returns true. The test performs access to management metrics
3636
* through default MBeanServer.
3737
* Note, that the test is correct ONLY against Sun's Hotspot VM. This
@@ -50,4 +50,3 @@
5050
* nsk.monitoring.CompilationMXBean.comptimemon001.comptimemon001
5151
* -testMode=server
5252
*/
53-

‎test/hotspot/jtreg/vmTestbase/nsk/monitoring/CompilationMXBean/comptimemon003/TestDescription.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
* VM Testbase readme:
3232
* DESCRIPTION
3333
* The test checks that
34-
* CompilationMBean.isCompilationTimeMonitoringSupported()
34+
* CompilationMXBean.isCompilationTimeMonitoringSupported()
3535
* method returns true. The test performs access to management metrics
3636
* through custom MBeanServer (developed and saved in
3737
* $TESTBASE/src/nsk/monitoring/share).
@@ -52,4 +52,3 @@
5252
* -testMode=server
5353
* -MBeanServer=custom
5454
*/
55-

‎test/hotspot/jtreg/vmTestbase/nsk/monitoring/CompilationMXBean/comptimemon004/TestDescription.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
* VM Testbase readme:
3232
* DESCRIPTION
3333
* The test checks that
34-
* CompilationMBean.isCompilationTimeMonitoringSupported()
34+
* CompilationMXBean.isCompilationTimeMonitoringSupported()
3535
* method returns true. The test performs access to management metrics
3636
* through default MBeanServer proxy.
3737
* Note, that the test is correct ONLY against Sun's Hotspot VM. This
@@ -50,4 +50,3 @@
5050
* nsk.monitoring.CompilationMXBean.comptimemon001.comptimemon001
5151
* -testMode=proxy
5252
*/
53-

‎test/hotspot/jtreg/vmTestbase/nsk/monitoring/CompilationMXBean/comptimemon005/TestDescription.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
* VM Testbase readme:
3232
* DESCRIPTION
3333
* The test checks that
34-
* CompilationMBean.isCompilationTimeMonitoringSupported()
34+
* CompilationMXBean.isCompilationTimeMonitoringSupported()
3535
* method returns true. The test performs access to management metrics
3636
* through custom MBeanServer proxy (developed and saved in
3737
* $TESTBASE/src/nsk/monitoring/share).
@@ -52,4 +52,3 @@
5252
* -testMode=proxy
5353
* -MBeanServer=custom
5454
*/
55-

‎test/jdk/sun/management/jmxremote/bootstrap/rmiregistry.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ com.sun.management.jmxremote.port=${getFreePort}
3939
#
4040
# This option enables thread contention monitoring if the
4141
# Java virtual machine supports such instrumentation.
42-
# Refer to the specification for the java.lang.management.ThreadMBean
42+
# Refer to the specification for the java.lang.management.ThreadMXBean
4343
# interface - see isThreadContentionMonitoringSupported() method.
4444
#
4545

‎test/jdk/sun/management/jmxremote/bootstrap/rmiregistryssl.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ com.sun.management.jmxremote.port=${getFreePort}
3939
#
4040
# This option enables thread contention monitoring if the
4141
# Java virtual machine supports such instrumentation.
42-
# Refer to the specification for the java.lang.management.ThreadMBean
42+
# Refer to the specification for the java.lang.management.ThreadMXBean
4343
# interface - see isThreadContentionMonitoringSupported() method.
4444
#
4545

0 commit comments

Comments
 (0)
Please sign in to comment.