comparison src/share/vm/oops/cpCache.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 c115fac239eb
children b2e698d2276c
comparison
equal deleted inserted replaced
10353:9ea643afcaaf 10376:a1ebd310d5c1
540 int length, 540 int length,
541 const intStack& index_map, 541 const intStack& index_map,
542 const intStack& invokedynamic_map, TRAPS) { 542 const intStack& invokedynamic_map, TRAPS) {
543 int size = ConstantPoolCache::size(length); 543 int size = ConstantPoolCache::size(length);
544 544
545 return new (loader_data, size, false, THREAD) ConstantPoolCache(length, index_map, invokedynamic_map); 545 return new (loader_data, size, false, MetaspaceObj::ConstantPoolCacheType, THREAD)
546 ConstantPoolCache(length, index_map, invokedynamic_map);
546 } 547 }
547 548
548 void ConstantPoolCache::initialize(const intArray& inverse_index_map, 549 void ConstantPoolCache::initialize(const intArray& inverse_index_map,
549 const intArray& invokedynamic_references_map) { 550 const intArray& invokedynamic_references_map) {
550 assert(inverse_index_map.length() == length(), "inverse index map must have same length as cache"); 551 assert(inverse_index_map.length() == length(), "inverse index map must have same length as cache");