Mercurial > hg > truffle
comparison agent/src/share/classes/sun/jvm/hotspot/tools/PStack.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 | 38ea2efa32a7 |
children |
comparison
equal
deleted
inserted
replaced
12859:f509b8f4699b | 12932:7fe6ef09d242 |
---|---|
180 } | 180 } |
181 } | 181 } |
182 | 182 |
183 public static void main(String[] args) throws Exception { | 183 public static void main(String[] args) throws Exception { |
184 PStack t = new PStack(); | 184 PStack t = new PStack(); |
185 t.start(args); | 185 t.execute(args); |
186 t.stop(); | |
187 } | 186 } |
188 | 187 |
189 // -- Internals only below this point | 188 // -- Internals only below this point |
190 private Map jframeCache; // Map<ThreadProxy, JavaVFrame[]> | 189 private Map jframeCache; // Map<ThreadProxy, JavaVFrame[]> |
191 private Map proxyToThread; // Map<ThreadProxy, JavaThread> | 190 private Map proxyToThread; // Map<ThreadProxy, JavaThread> |