comparison src/share/vm/oops/constMethod.hpp @ 7956:16fb9f942703

6479360: PrintClassHistogram improvements Summary: jcmd <pid> GC.class_stats (UnlockDiagnosticVMOptions) Reviewed-by: coleenp, hseigel, sla, acorn Contributed-by: ioi.lam@oracle.com
author acorn
date Fri, 25 Jan 2013 15:06:18 -0500
parents f9eb431c3efe
children 24a91505f9d5
comparison
equal deleted inserted replaced
7950:6cf2530f7fd3 7956:16fb9f942703
1 /* 1 /*
2 * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
128 // within the ConstMethod container u2 flags_hi; 128 // within the ConstMethod container u2 flags_hi;
129 u2 flags_hi; 129 u2 flags_hi;
130 u2 flags_lo; 130 u2 flags_lo;
131 }; 131 };
132 132
133 class KlassSizeStats;
133 134
134 class ConstMethod : public MetaspaceObj { 135 class ConstMethod : public MetaspaceObj {
135 friend class VMStructs; 136 friend class VMStructs;
136 137
137 public: 138 public:
318 int method_parameters_length, 319 int method_parameters_length,
319 u2 generic_signature_index); 320 u2 generic_signature_index);
320 321
321 int size() const { return _constMethod_size;} 322 int size() const { return _constMethod_size;}
322 void set_constMethod_size(int size) { _constMethod_size = size; } 323 void set_constMethod_size(int size) { _constMethod_size = size; }
324 #if INCLUDE_SERVICES
325 void collect_statistics(KlassSizeStats *sz) const;
326 #endif
323 327
324 // code size 328 // code size
325 int code_size() const { return _code_size; } 329 int code_size() const { return _code_size; }
326 void set_code_size(int size) { 330 void set_code_size(int size) {
327 assert(max_method_code_size < (1 << 16), 331 assert(max_method_code_size < (1 << 16),