diff --git a/jdk/src/java.management/share/classes/sun/management/CompilerThreadStat.java b/jdk/src/java.management/share/classes/sun/management/CompilerThreadStat.java index 3317cf0c76f..9ebffa3dc06 100644 --- a/jdk/src/java.management/share/classes/sun/management/CompilerThreadStat.java +++ b/jdk/src/java.management/share/classes/sun/management/CompilerThreadStat.java @@ -27,6 +27,7 @@ package sun.management; /** */ +@Deprecated public class CompilerThreadStat implements java.io.Serializable { private String name; private long taskCount; diff --git a/jdk/src/java.management/share/classes/sun/management/HotspotCompilation.java b/jdk/src/java.management/share/classes/sun/management/HotspotCompilation.java index 920d972664e..e7e29b3e20b 100644 --- a/jdk/src/java.management/share/classes/sun/management/HotspotCompilation.java +++ b/jdk/src/java.management/share/classes/sun/management/HotspotCompilation.java @@ -90,6 +90,7 @@ class HotspotCompilation this.time = (LongCounter) lookup(basename + "time"); } + @SuppressWarnings("deprecation") CompilerThreadStat getCompilerThreadStat() { MethodInfo minfo = new MethodInfo(method.stringValue(), (int) type.longValue(), @@ -182,6 +183,7 @@ class HotspotCompilation return nmethodSize.longValue(); } + @Deprecated public List getCompilerThreadStats() { List list = new ArrayList<>(threads.size()); for (CompilerThreadInfo info : threads) { diff --git a/jdk/src/java.management/share/classes/sun/management/HotspotCompilationMBean.java b/jdk/src/java.management/share/classes/sun/management/HotspotCompilationMBean.java index 8085a0e6666..2a9849f0abb 100644 --- a/jdk/src/java.management/share/classes/sun/management/HotspotCompilationMBean.java +++ b/jdk/src/java.management/share/classes/sun/management/HotspotCompilationMBean.java @@ -46,6 +46,7 @@ public interface HotspotCompilationMBean { * the statistic of a compiler thread. * */ + @Deprecated public java.util.List getCompilerThreadStats(); /**