8014912: Restore PrintSharedSpaces functionality after NPG

Added dumping of object sizes in CDS archive, sorted by MetaspaceObj::Type

Reviewed-by: coleenp, acorn
This commit is contained in:
Ioi Lam 2013-05-28 16:36:19 -07:00
parent f52e6781ee
commit 9dc36eb923
15 changed files with 301 additions and 36 deletions

View file

@ -74,7 +74,7 @@ Method* Method::allocate(ClassLoaderData* loader_data,
int size = Method::size(access_flags.is_native());
return new (loader_data, size, false, THREAD) Method(cm, access_flags, size);
return new (loader_data, size, false, MetaspaceObj::MethodType, THREAD) Method(cm, access_flags, size);
}
Method::Method(ConstMethod* xconst, AccessFlags access_flags, int size) {