Mercurial > hg > truffle
comparison src/share/vm/oops/method.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 | e484fe2abebd |
children | 836a62f43af9 e0c9a1d29eb4 |
comparison
equal
deleted
inserted
replaced
10353:9ea643afcaaf | 10376:a1ebd310d5c1 |
---|---|
72 method_type, | 72 method_type, |
73 CHECK_NULL); | 73 CHECK_NULL); |
74 | 74 |
75 int size = Method::size(access_flags.is_native()); | 75 int size = Method::size(access_flags.is_native()); |
76 | 76 |
77 return new (loader_data, size, false, THREAD) Method(cm, access_flags, size); | 77 return new (loader_data, size, false, MetaspaceObj::MethodType, THREAD) Method(cm, access_flags, size); |
78 } | 78 } |
79 | 79 |
80 Method::Method(ConstMethod* xconst, AccessFlags access_flags, int size) { | 80 Method::Method(ConstMethod* xconst, AccessFlags access_flags, int size) { |
81 No_Safepoint_Verifier no_safepoint; | 81 No_Safepoint_Verifier no_safepoint; |
82 set_constMethod(xconst); | 82 set_constMethod(xconst); |