Mercurial > hg > graal-compiler
comparison agent/src/share/classes/sun/jvm/hotspot/tools/JStack.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 | de6a9e811145 |
comparison
equal
deleted
inserted
replaced
12859:f509b8f4699b | 12932:7fe6ef09d242 |
---|---|
87 } | 87 } |
88 args = newArgs; | 88 args = newArgs; |
89 } | 89 } |
90 | 90 |
91 JStack jstack = new JStack(mixedMode, concurrentLocks); | 91 JStack jstack = new JStack(mixedMode, concurrentLocks); |
92 jstack.start(args); | 92 jstack.execute(args); |
93 jstack.stop(); | |
94 } | 93 } |
95 | 94 |
96 private boolean mixedMode; | 95 private boolean mixedMode; |
97 private boolean concurrentLocks; | 96 private boolean concurrentLocks; |
98 } | 97 } |