Mercurial > hg > truffle
comparison src/share/vm/oops/symbol.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 | 8c03fc47511d |
children | d9eed26d638a |
comparison
equal
deleted
inserted
replaced
10353:9ea643afcaaf | 10376:a1ebd310d5c1 |
---|---|
53 | 53 |
54 void* Symbol::operator new(size_t sz, int len, ClassLoaderData* loader_data, TRAPS) { | 54 void* Symbol::operator new(size_t sz, int len, ClassLoaderData* loader_data, TRAPS) { |
55 address res; | 55 address res; |
56 int alloc_size = size(len)*HeapWordSize; | 56 int alloc_size = size(len)*HeapWordSize; |
57 res = (address) Metaspace::allocate(loader_data, size(len), true, | 57 res = (address) Metaspace::allocate(loader_data, size(len), true, |
58 Metaspace::NonClassType, CHECK_NULL); | 58 MetaspaceObj::SymbolType, CHECK_NULL); |
59 return res; | 59 return res; |
60 } | 60 } |
61 | 61 |
62 void Symbol::operator delete(void *p) { | 62 void Symbol::operator delete(void *p) { |
63 assert(((Symbol*)p)->refcount() == 0, "should not call this"); | 63 assert(((Symbol*)p)->refcount() == 0, "should not call this"); |