Mercurial > hg > truffle
comparison agent/src/share/classes/sun/jvm/hotspot/tools/ClassLoaderStats.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 | c888354aaa35 |
comparison
equal
deleted
inserted
replaced
12859:f509b8f4699b | 12932:7fe6ef09d242 |
---|---|
49 super(d); | 49 super(d); |
50 } | 50 } |
51 | 51 |
52 public static void main(String[] args) { | 52 public static void main(String[] args) { |
53 ClassLoaderStats cls = new ClassLoaderStats(); | 53 ClassLoaderStats cls = new ClassLoaderStats(); |
54 cls.start(args); | 54 cls.execute(args); |
55 cls.stop(); | |
56 } | 55 } |
57 | 56 |
58 private static class ClassData { | 57 private static class ClassData { |
59 Klass klass; | 58 Klass klass; |
60 long size; | 59 long size; |