hotspot/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/tools/HeapSummary.java
--- a/hotspot/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/tools/HeapSummary.java Tue Mar 15 13:48:21 2016 -0700
+++ b/hotspot/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/tools/HeapSummary.java Thu Mar 17 19:04:01 2016 +0000
@@ -33,8 +33,9 @@
import sun.jvm.hotspot.memory.*;
import sun.jvm.hotspot.oops.*;
import sun.jvm.hotspot.runtime.*;
+import jdk.internal.vm.agent.spi.ToolProvider;
-public class HeapSummary extends Tool {
+public class HeapSummary extends Tool implements ToolProvider {
public HeapSummary() {
super();
@@ -49,6 +50,16 @@
hs.execute(args);
}
+ @Override
+ public String getName() {
+ return "heapSummary";
+ }
+
+ @Override
+ public void run(String... arguments) {
+ execute(arguments);
+ }
+
public void run() {
CollectedHeap heap = VM.getVM().getUniverse().heap();
VM.Flag[] flags = VM.getVM().getCommandLineFlags();