1.1 --- a/src/share/vm/oops/constMethod.hpp Thu Jan 24 23:30:45 2013 -0800 1.2 +++ b/src/share/vm/oops/constMethod.hpp Fri Jan 25 15:06:18 2013 -0500 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -130,6 +130,7 @@ 1.11 u2 flags_lo; 1.12 }; 1.13 1.14 +class KlassSizeStats; 1.15 1.16 class ConstMethod : public MetaspaceObj { 1.17 friend class VMStructs; 1.18 @@ -320,6 +321,9 @@ 1.19 1.20 int size() const { return _constMethod_size;} 1.21 void set_constMethod_size(int size) { _constMethod_size = size; } 1.22 +#if INCLUDE_SERVICES 1.23 + void collect_statistics(KlassSizeStats *sz) const; 1.24 +#endif 1.25 1.26 // code size 1.27 int code_size() const { return _code_size; }