1.1 --- a/src/share/vm/oops/methodData.hpp Thu Jan 24 23:30:45 2013 -0800 1.2 +++ b/src/share/vm/oops/methodData.hpp Fri Jan 25 15:06:18 2013 -0500 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 2000, 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 @@ -32,6 +32,7 @@ 1.11 #include "runtime/orderAccess.hpp" 1.12 1.13 class BytecodeStream; 1.14 +class KlassSizeStats; 1.15 1.16 // The MethodData object collects counts and other profile information 1.17 // during zeroth-tier (interpretive) and first-tier execution. 1.18 @@ -1289,6 +1290,9 @@ 1.19 // My size 1.20 int size_in_bytes() const { return _size; } 1.21 int size() const { return align_object_size(align_size_up(_size, BytesPerWord)/BytesPerWord); } 1.22 +#if INCLUDE_SERVICES 1.23 + void collect_statistics(KlassSizeStats *sz) const; 1.24 +#endif 1.25 1.26 int creation_mileage() const { return _creation_mileage; } 1.27 void set_creation_mileage(int x) { _creation_mileage = x; }