hotspot/src/share/vm/oops/cpCache.cpp
changeset 17858 c292f8791cca
parent 17078 a37993c37937
child 20017 81eba62e9048
equal deleted inserted replaced
17836:73f35424b806 17858:c292f8791cca
   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");