mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
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:
parent
f52e6781ee
commit
9dc36eb923
15 changed files with 301 additions and 36 deletions
|
@ -40,7 +40,7 @@ ConstMethod* ConstMethod::allocate(ClassLoaderData* loader_data,
|
|||
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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue