8134607: Remove per-compiler performance counters
authorredestad
Mon, 12 Oct 2015 15:41:50 +0200
changeset 33272 74661cd2e610
parent 33271 e7aac997b492
child 33273 bf3ba1c58adf
8134607: Remove per-compiler performance counters Reviewed-by: twisti, neliasso
jdk/src/java.management/share/classes/sun/management/CompilerThreadStat.java
jdk/src/java.management/share/classes/sun/management/HotspotCompilation.java
jdk/src/java.management/share/classes/sun/management/HotspotCompilationMBean.java
--- a/jdk/src/java.management/share/classes/sun/management/CompilerThreadStat.java	Fri Oct 09 02:43:53 2015 -0400
+++ b/jdk/src/java.management/share/classes/sun/management/CompilerThreadStat.java	Mon Oct 12 15:41:50 2015 +0200
@@ -27,6 +27,7 @@
 
 /**
  */
+@Deprecated
 public class CompilerThreadStat implements java.io.Serializable {
     private String name;
     private long taskCount;
--- a/jdk/src/java.management/share/classes/sun/management/HotspotCompilation.java	Fri Oct 09 02:43:53 2015 -0400
+++ b/jdk/src/java.management/share/classes/sun/management/HotspotCompilation.java	Mon Oct 12 15:41:50 2015 +0200
@@ -90,6 +90,7 @@
             this.time = (LongCounter) lookup(basename + "time");
         }
 
+        @SuppressWarnings("deprecation")
         CompilerThreadStat getCompilerThreadStat() {
             MethodInfo minfo = new MethodInfo(method.stringValue(),
                                               (int) type.longValue(),
@@ -182,6 +183,7 @@
         return nmethodSize.longValue();
     }
 
+    @Deprecated
     public List<CompilerThreadStat> getCompilerThreadStats() {
         List<CompilerThreadStat> list = new ArrayList<>(threads.size());
         for (CompilerThreadInfo info : threads) {
--- a/jdk/src/java.management/share/classes/sun/management/HotspotCompilationMBean.java	Fri Oct 09 02:43:53 2015 -0400
+++ b/jdk/src/java.management/share/classes/sun/management/HotspotCompilationMBean.java	Mon Oct 12 15:41:50 2015 +0200
@@ -46,6 +46,7 @@
      * the statistic of a compiler thread.
      *
      */
+    @Deprecated
     public java.util.List<CompilerThreadStat> getCompilerThreadStats();
 
     /**