< prev index next >
src/share/vm/oops/constantPool.hpp
Print this page
*** 209,218 ****
--- 209,221 ----
// Interpreter runtime support
ConstantPoolCache* cache() const { return _cache; }
void set_cache(ConstantPoolCache* cache){ _cache = cache; }
+ virtual void metaspace_pointers_do(MetaspaceClosure* iter);
+ virtual MetaspaceObj::Type type() const { return ConstantPoolType; }
+
// Create object cache in the constant pool
void initialize_resolved_references(ClassLoaderData* loader_data,
const intStack& reference_map,
int constant_pool_map_length,
TRAPS);
*** 762,771 ****
--- 765,777 ----
int size() const { return size(length()); }
#if INCLUDE_SERVICES
void collect_statistics(KlassSizeStats *sz) const;
#endif
+ // ConstantPools should be stored in the read-only region of CDS archive.
+ static bool is_read_only_by_default() { return true; }
+
friend class ClassFileParser;
friend class SystemDictionary;
// Used by CDS. These classes need to access the private ConstantPool() constructor.
template <class T> friend class CppVtableTesterA;
< prev index next >