Mercurial > hg > graal-jvmci-8
comparison src/share/vm/memory/allocation.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 | f9be75d21404 |
children | eaf3742822ec e0c9a1d29eb4 |
comparison
equal
deleted
inserted
replaced
10353:9ea643afcaaf | 10376:a1ebd310d5c1 |
---|---|
58 void _ValueObj::operator delete(void* p) { ShouldNotCallThis(); } | 58 void _ValueObj::operator delete(void* p) { ShouldNotCallThis(); } |
59 void* _ValueObj::operator new [](size_t size) { ShouldNotCallThis(); return 0; } | 59 void* _ValueObj::operator new [](size_t size) { ShouldNotCallThis(); return 0; } |
60 void _ValueObj::operator delete [](void* p) { ShouldNotCallThis(); } | 60 void _ValueObj::operator delete [](void* p) { ShouldNotCallThis(); } |
61 | 61 |
62 void* MetaspaceObj::operator new(size_t size, ClassLoaderData* loader_data, | 62 void* MetaspaceObj::operator new(size_t size, ClassLoaderData* loader_data, |
63 size_t word_size, bool read_only, TRAPS) { | 63 size_t word_size, bool read_only, |
64 MetaspaceObj::Type type, TRAPS) { | |
64 // Klass has it's own operator new | 65 // Klass has it's own operator new |
65 return Metaspace::allocate(loader_data, word_size, read_only, | 66 return Metaspace::allocate(loader_data, word_size, read_only, |
66 Metaspace::NonClassType, CHECK_NULL); | 67 type, CHECK_NULL); |
67 } | 68 } |
68 | 69 |
69 bool MetaspaceObj::is_shared() const { | 70 bool MetaspaceObj::is_shared() const { |
70 return MetaspaceShared::is_in_shared_space(this); | 71 return MetaspaceShared::is_in_shared_space(this); |
71 } | 72 } |