mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +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
|
@ -55,7 +55,7 @@ void* Symbol::operator new(size_t sz, int len, ClassLoaderData* loader_data, TRA
|
|||
address res;
|
||||
int alloc_size = size(len)*HeapWordSize;
|
||||
res = (address) Metaspace::allocate(loader_data, size(len), true,
|
||||
Metaspace::NonClassType, CHECK_NULL);
|
||||
MetaspaceObj::SymbolType, CHECK_NULL);
|
||||
return res;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue