< prev index next >

src/hotspot/share/gc/g1/g1CollectedHeap.hpp

Print this page




1102   // the collection set or not. Each of the array's elements denotes whether the
1103   // corresponding region is in the collection set or not.
1104   G1InCSetStateFastTestBiasedMappedArray _in_cset_fast_test;
1105 
1106  public:
1107 
1108   inline InCSetState in_cset_state(const oop obj);
1109 
1110   // Return "TRUE" iff the given object address is in the reserved
1111   // region of g1.
1112   bool is_in_g1_reserved(const void* p) const {
1113     return _hrm->reserved().contains(p);
1114   }
1115 
1116   // Returns a MemRegion that corresponds to the space that has been
1117   // reserved for the heap
1118   MemRegion g1_reserved() const {
1119     return _hrm->reserved();
1120   }
1121 
1122   virtual bool is_in_closed_subset(const void* p) const;
1123 
1124   G1HotCardCache* g1_hot_card_cache() const { return _hot_card_cache; }
1125 
1126   G1CardTable* card_table() const {
1127     return _card_table;
1128   }
1129 
1130   // Iteration functions.
1131 
1132   // Iterate over all objects, calling "cl.do_object" on each.
1133   virtual void object_iterate(ObjectClosure* cl);
1134 
1135   virtual void safe_object_iterate(ObjectClosure* cl) {
1136     object_iterate(cl);
1137   }
1138 
1139   // Iterate over heap regions, in address order, terminating the
1140   // iteration early if the "do_heap_region" method returns "true".
1141   void heap_region_iterate(HeapRegionClosure* blk) const;
1142 
1143   // Return the region with the given index. It assumes the index is valid.




1102   // the collection set or not. Each of the array's elements denotes whether the
1103   // corresponding region is in the collection set or not.
1104   G1InCSetStateFastTestBiasedMappedArray _in_cset_fast_test;
1105 
1106  public:
1107 
1108   inline InCSetState in_cset_state(const oop obj);
1109 
1110   // Return "TRUE" iff the given object address is in the reserved
1111   // region of g1.
1112   bool is_in_g1_reserved(const void* p) const {
1113     return _hrm->reserved().contains(p);
1114   }
1115 
1116   // Returns a MemRegion that corresponds to the space that has been
1117   // reserved for the heap
1118   MemRegion g1_reserved() const {
1119     return _hrm->reserved();
1120   }
1121 


1122   G1HotCardCache* g1_hot_card_cache() const { return _hot_card_cache; }
1123 
1124   G1CardTable* card_table() const {
1125     return _card_table;
1126   }
1127 
1128   // Iteration functions.
1129 
1130   // Iterate over all objects, calling "cl.do_object" on each.
1131   virtual void object_iterate(ObjectClosure* cl);
1132 
1133   virtual void safe_object_iterate(ObjectClosure* cl) {
1134     object_iterate(cl);
1135   }
1136 
1137   // Iterate over heap regions, in address order, terminating the
1138   // iteration early if the "do_heap_region" method returns "true".
1139   void heap_region_iterate(HeapRegionClosure* blk) const;
1140 
1141   // Return the region with the given index. It assumes the index is valid.


< prev index next >