< prev index next >

src/share/vm/classfile/classLoaderStats.cpp

Print this page
rev 7800 : [mq]: cleanupOopInlineHpp


   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "classfile/classLoaderStats.hpp"

  27 #include "utilities/globalDefinitions.hpp"
  28 
  29 
  30 class ClassStatsClosure : public KlassClosure {
  31 public:
  32   int _num_classes;
  33 
  34   ClassStatsClosure() :
  35     _num_classes(0) {
  36   }
  37 
  38   virtual void do_klass(Klass* k) {
  39     _num_classes++;
  40   }
  41 };
  42 
  43 
  44 void ClassLoaderStatsClosure::do_cld(ClassLoaderData* cld) {
  45   oop cl = cld->class_loader();
  46   ClassLoaderStats* cls;




   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "classfile/classLoaderStats.hpp"
  27 #include "oops/oop.inline.hpp"
  28 #include "utilities/globalDefinitions.hpp"
  29 
  30 
  31 class ClassStatsClosure : public KlassClosure {
  32 public:
  33   int _num_classes;
  34 
  35   ClassStatsClosure() :
  36     _num_classes(0) {
  37   }
  38 
  39   virtual void do_klass(Klass* k) {
  40     _num_classes++;
  41   }
  42 };
  43 
  44 
  45 void ClassLoaderStatsClosure::do_cld(ClassLoaderData* cld) {
  46   oop cl = cld->class_loader();
  47   ClassLoaderStats* cls;


< prev index next >