src/share/vm/oops/klass.hpp

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 89,98 **** --- 89,99 ---- template <class T> class Array; template <class T> class GrowableArray; class ClassLoaderData; class klassVtable; class ParCompactionManager; + class KlassSizeStats; class Klass : public Metadata { friend class VMStructs; protected: // note: put frequently-used fields together at start of klass structure
*** 475,484 **** --- 476,488 ---- // actual oop size of obj in memory virtual int oop_size(oop obj) const = 0; // Size of klass in word size. virtual int size() const = 0; + #if INCLUDE_SERVICES + virtual void collect_statistics(KlassSizeStats *sz) const; + #endif // Returns the Java name for a class (Resource allocated) // For arrays, this returns the name of the element with a leading '['. // For classes, this returns the name with the package separators // turned into '.'s.