Mercurial > hg > graal-jvmci-8
comparison agent/src/share/classes/sun/jvm/hotspot/tools/HeapSummary.java @ 12932:7fe6ef09d242
8025638: jmap returns 0 instead of 1 when it fails.
Summary: Re-factored some code handling return values and fails/errors during tool execution.
Reviewed-by: sla, kevinw
Contributed-by: fredrik.arvidsson@oracle.com
author | farvidsson |
---|---|
date | Wed, 16 Oct 2013 09:20:23 +0200 |
parents | 7944aba7ba41 |
children | de6a9e811145 |
comparison
equal
deleted
inserted
replaced
12859:f509b8f4699b | 12932:7fe6ef09d242 |
---|---|
44 super(d); | 44 super(d); |
45 } | 45 } |
46 | 46 |
47 public static void main(String[] args) { | 47 public static void main(String[] args) { |
48 HeapSummary hs = new HeapSummary(); | 48 HeapSummary hs = new HeapSummary(); |
49 hs.start(args); | 49 hs.execute(args); |
50 hs.stop(); | |
51 } | 50 } |
52 | 51 |
53 public void run() { | 52 public void run() { |
54 CollectedHeap heap = VM.getVM().getUniverse().heap(); | 53 CollectedHeap heap = VM.getVM().getUniverse().heap(); |
55 VM.Flag[] flags = VM.getVM().getCommandLineFlags(); | 54 VM.Flag[] flags = VM.getVM().getCommandLineFlags(); |