diff src/share/vm/oops/constMethod.cpp @ 4773: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 0c3ee6f1fa23
children e0c9a1d29eb4
line wrap: on
line diff
--- a/src/share/vm/oops/constMethod.cpp	Tue May 28 11:35:57 2013 -0700
+++ b/src/share/vm/oops/constMethod.cpp	Tue May 28 16:36:19 2013 -0700
@@ -40,7 +40,7 @@
                                    MethodType method_type,
                                    TRAPS) {
   int size = ConstMethod::size(byte_code_size, sizes);
-  return new (loader_data, size, true, THREAD) ConstMethod(
+  return new (loader_data, size, true, MetaspaceObj::ConstMethodType, THREAD) ConstMethod(
       byte_code_size, sizes, method_type, size);
 }