comparison agent/src/share/classes/sun/jvm/hotspot/tools/JInfo.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 b03f33670080
comparison
equal deleted inserted replaced
12859:f509b8f4699b 12932:7fe6ef09d242
132 default: 132 default:
133 new JInfo(mode).usage(); 133 new JInfo(mode).usage();
134 } 134 }
135 135
136 JInfo jinfo = new JInfo(mode); 136 JInfo jinfo = new JInfo(mode);
137 jinfo.start(args); 137 jinfo.execute(args);
138 jinfo.stop();
139 } 138 }
140 139
141 private void printVMFlags() { 140 private void printVMFlags() {
142 String str = Arguments.getJVMFlags(); 141 String str = Arguments.getJVMFlags();
143 if (str != null) { 142 if (str != null) {