equal
deleted
inserted
replaced
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"); |