< prev index next >

src/hotspot/share/oops/cpCache.inline.hpp

Print this page

 72 }
 73 
 74 inline bool ConstantPoolCacheEntry::has_local_signature() const {
 75   return (!is_f1_null()) && (_flags & (1 << has_local_signature_shift)) != 0;
 76 }
 77 
 78 inline intx ConstantPoolCacheEntry::flags_ord() const   { return (intx)Atomic::load_acquire(&_flags); }
 79 
 80 inline bool ConstantPoolCacheEntry::indy_resolution_failed() const {
 81   intx flags = flags_ord();
 82   return (flags & (1 << indy_resolution_failed_shift)) != 0;
 83 }
 84 
 85 // Constructor
 86 inline ConstantPoolCache::ConstantPoolCache(int length,
 87                                             const intStack& inverse_index_map,
 88                                             const intStack& invokedynamic_inverse_index_map,
 89                                             const intStack& invokedynamic_references_map) :
 90                                                   _length(length),
 91                                                   _constant_pool(NULL) {
 92   CDS_JAVA_HEAP_ONLY(_archived_references = narrowOop::null;)
 93   initialize(inverse_index_map, invokedynamic_inverse_index_map,
 94              invokedynamic_references_map);
 95   for (int i = 0; i < length; i++) {
 96     assert(entry_at(i)->is_f1_null(), "Failed to clear?");
 97   }
 98 }
 99 
100 inline oop ConstantPoolCache::resolved_references() { return _resolved_references.resolve(); }
101 
102 #endif // SHARE_OOPS_CPCACHE_INLINE_HPP

 72 }
 73 
 74 inline bool ConstantPoolCacheEntry::has_local_signature() const {
 75   return (!is_f1_null()) && (_flags & (1 << has_local_signature_shift)) != 0;
 76 }
 77 
 78 inline intx ConstantPoolCacheEntry::flags_ord() const   { return (intx)Atomic::load_acquire(&_flags); }
 79 
 80 inline bool ConstantPoolCacheEntry::indy_resolution_failed() const {
 81   intx flags = flags_ord();
 82   return (flags & (1 << indy_resolution_failed_shift)) != 0;
 83 }
 84 
 85 // Constructor
 86 inline ConstantPoolCache::ConstantPoolCache(int length,
 87                                             const intStack& inverse_index_map,
 88                                             const intStack& invokedynamic_inverse_index_map,
 89                                             const intStack& invokedynamic_references_map) :
 90                                                   _length(length),
 91                                                   _constant_pool(NULL) {
 92   CDS_JAVA_HEAP_ONLY(_archived_references_index = -1;)
 93   initialize(inverse_index_map, invokedynamic_inverse_index_map,
 94              invokedynamic_references_map);
 95   for (int i = 0; i < length; i++) {
 96     assert(entry_at(i)->is_f1_null(), "Failed to clear?");
 97   }
 98 }
 99 
100 inline oop ConstantPoolCache::resolved_references() { return _resolved_references.resolve(); }
101 
102 #endif // SHARE_OOPS_CPCACHE_INLINE_HPP
< prev index next >