From 8a269a674bb7714f75cc95da4245f0af6540cba1 Mon Sep 17 00:00:00 2001 From: Claes Redestad Date: Mon, 12 Oct 2015 15:41:50 +0200 Subject: [PATCH] 8134607: Remove per-compiler performance counters Reviewed-by: twisti, neliasso --- .../share/classes/sun/management/CompilerThreadStat.java | 1 + .../share/classes/sun/management/HotspotCompilation.java | 2 ++ .../share/classes/sun/management/HotspotCompilationMBean.java | 1 + 3 files changed, 4 insertions(+) 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(); /**