< prev index next >

src/hotspot/share/oops/constantPool.hpp

Print this page

 188     return (_generic_signature_index == 0) ?
 189       (Symbol*)NULL : symbol_at(_generic_signature_index);
 190   }
 191   u2 generic_signature_index() const                   { return _generic_signature_index; }
 192   void set_generic_signature_index(u2 sig_index)       { _generic_signature_index = sig_index; }
 193 
 194   // source file name
 195   Symbol* source_file_name() const {
 196     return (_source_file_name_index == 0) ?
 197       (Symbol*)NULL : symbol_at(_source_file_name_index);
 198   }
 199   u2 source_file_name_index() const                    { return _source_file_name_index; }
 200   void set_source_file_name_index(u2 sourcefile_index) { _source_file_name_index = sourcefile_index; }
 201 
 202   void copy_fields(const ConstantPool* orig);
 203 
 204   // Redefine classes support.  If a method refering to this constant pool
 205   // is on the executing stack, or as a handle in vm code, this constant pool
 206   // can't be removed from the set of previous versions saved in the instance
 207   // class.
 208   bool on_stack() const                      { return (_flags &_on_stack) != 0; }
 209   void set_on_stack(const bool value);
 210 
 211   // Faster than MetaspaceObj::is_shared() - used by set_on_stack()
 212   bool is_shared() const                     { return (_flags & _is_shared) != 0; }
 213 
 214   bool has_dynamic_constant() const       { return (_flags & _has_dynamic_constant) != 0; }
 215   void set_has_dynamic_constant()         { _flags |= _has_dynamic_constant; }
 216 
 217   // Klass holding pool
 218   InstanceKlass* pool_holder() const      { return _pool_holder; }
 219   void set_pool_holder(InstanceKlass* k)  { _pool_holder = k; }
 220   InstanceKlass** pool_holder_addr()      { return &_pool_holder; }
 221 
 222   // Interpreter runtime support
 223   ConstantPoolCache* cache() const        { return _cache; }
 224   void set_cache(ConstantPoolCache* cache){ _cache = cache; }
 225 
 226   virtual void metaspace_pointers_do(MetaspaceClosure* iter);
 227   virtual MetaspaceObj::Type type() const { return ConstantPoolType; }
 228 

 188     return (_generic_signature_index == 0) ?
 189       (Symbol*)NULL : symbol_at(_generic_signature_index);
 190   }
 191   u2 generic_signature_index() const                   { return _generic_signature_index; }
 192   void set_generic_signature_index(u2 sig_index)       { _generic_signature_index = sig_index; }
 193 
 194   // source file name
 195   Symbol* source_file_name() const {
 196     return (_source_file_name_index == 0) ?
 197       (Symbol*)NULL : symbol_at(_source_file_name_index);
 198   }
 199   u2 source_file_name_index() const                    { return _source_file_name_index; }
 200   void set_source_file_name_index(u2 sourcefile_index) { _source_file_name_index = sourcefile_index; }
 201 
 202   void copy_fields(const ConstantPool* orig);
 203 
 204   // Redefine classes support.  If a method refering to this constant pool
 205   // is on the executing stack, or as a handle in vm code, this constant pool
 206   // can't be removed from the set of previous versions saved in the instance
 207   // class.
 208   bool on_stack() const;
 209   void set_on_stack(const bool value);
 210 
 211   // Faster than MetaspaceObj::is_shared() - used by set_on_stack()
 212   bool is_shared() const                     { return (_flags & _is_shared) != 0; }
 213 
 214   bool has_dynamic_constant() const       { return (_flags & _has_dynamic_constant) != 0; }
 215   void set_has_dynamic_constant()         { _flags |= _has_dynamic_constant; }
 216 
 217   // Klass holding pool
 218   InstanceKlass* pool_holder() const      { return _pool_holder; }
 219   void set_pool_holder(InstanceKlass* k)  { _pool_holder = k; }
 220   InstanceKlass** pool_holder_addr()      { return &_pool_holder; }
 221 
 222   // Interpreter runtime support
 223   ConstantPoolCache* cache() const        { return _cache; }
 224   void set_cache(ConstantPoolCache* cache){ _cache = cache; }
 225 
 226   virtual void metaspace_pointers_do(MetaspaceClosure* iter);
 227   virtual MetaspaceObj::Type type() const { return ConstantPoolType; }
 228 
< prev index next >