src/share/vm/oops/cpCache.cpp

changeset 5208
a1ebd310d5c1
parent 4984
c115fac239eb
child 5732
b2e698d2276c
equal deleted inserted replaced
5186:9ea643afcaaf 5208: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");

mercurial