src/share/vm/oops/method.hpp

changeset 4510
1eae78177059
parent 4509
44c5fcd9cb25
parent 4497
16fb9f942703
child 4541
d05ff4bf41b3
child 4562
8d9fc28831cc
     1.1 --- a/src/share/vm/oops/method.hpp	Thu Jan 24 10:57:38 2013 -0800
     1.2 +++ b/src/share/vm/oops/method.hpp	Fri Feb 01 15:25:37 2013 -0500
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 1997, 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 @@ -101,6 +101,7 @@
    1.11  class AdapterHandlerEntry;
    1.12  class MethodData;
    1.13  class ConstMethod;
    1.14 +class KlassSizeStats;
    1.15  
    1.16  class Method : public Metadata {
    1.17   friend class VMStructs;
    1.18 @@ -593,6 +594,9 @@
    1.19    static int header_size()                       { return sizeof(Method)/HeapWordSize; }
    1.20    static int size(bool is_native);
    1.21    int size() const                               { return method_size(); }
    1.22 +#if INCLUDE_SERVICES
    1.23 +  void collect_statistics(KlassSizeStats *sz) const;
    1.24 +#endif
    1.25  
    1.26    // interpreter support
    1.27    static ByteSize const_offset()                 { return byte_offset_of(Method, _constMethod       ); }

mercurial