diff src/share/vm/oops/methodCounters.cpp @ 10376:a1ebd310d5c1

8014912: Restore PrintSharedSpaces functionality after NPG Summary: Added dumping of object sizes in CDS archive, sorted by MetaspaceObj::Type Reviewed-by: coleenp, acorn
author iklam
date Tue, 28 May 2013 16:36:19 -0700
parents aeaca88565e6
children 88672775a26c 631667807de7
line wrap: on
line diff
--- a/src/share/vm/oops/methodCounters.cpp	Tue May 28 11:35:57 2013 -0700
+++ b/src/share/vm/oops/methodCounters.cpp	Tue May 28 16:36:19 2013 -0700
@@ -26,7 +26,7 @@
 #include "runtime/thread.inline.hpp"
 
 MethodCounters* MethodCounters::allocate(ClassLoaderData* loader_data, TRAPS) {
-  return new(loader_data, size(), false, THREAD) MethodCounters();
+  return new(loader_data, size(), false, MetaspaceObj::MethodCountersType, THREAD) MethodCounters();
 }
 
 void MethodCounters::clear_counters() {