hotspot/src/share/vm/gc_implementation/g1/heapRegionRemSet.hpp
changeset 24099 9c132a88935d
parent 23523 75f522e33395
child 24101 bd1a2ee20760
equal deleted inserted replaced
24098:48f07e2c74de 24099:9c132a88935d
   349   }
   349   }
   350 
   350 
   351   // Returns the memory occupancy of all free_list data structures associated
   351   // Returns the memory occupancy of all free_list data structures associated
   352   // with remembered sets.
   352   // with remembered sets.
   353   static size_t fl_mem_size() {
   353   static size_t fl_mem_size() {
   354     return OtherRegionsTable::fl_mem_size() + G1CodeRootSet::fl_mem_size();
   354     return OtherRegionsTable::fl_mem_size() + G1CodeRootSet::free_chunks_mem_size();
   355   }
   355   }
   356 
   356 
   357   bool contains_reference(OopOrNarrowOopStar from) const {
   357   bool contains_reference(OopOrNarrowOopStar from) const {
   358     return _other_regions.contains_reference(from);
   358     return _other_regions.contains_reference(from);
   359   }
   359   }
   394   static void cleanup();
   394   static void cleanup();
   395 
   395 
   396   // Declare the heap size (in # of regions) to the HeapRegionRemSet(s).
   396   // Declare the heap size (in # of regions) to the HeapRegionRemSet(s).
   397   // (Uses it to initialize from_card_cache).
   397   // (Uses it to initialize from_card_cache).
   398   static void init_heap(uint max_regions) {
   398   static void init_heap(uint max_regions) {
   399     G1CodeRootSet::initialize();
       
   400     OtherRegionsTable::init_from_card_cache(max_regions);
   399     OtherRegionsTable::init_from_card_cache(max_regions);
   401   }
   400   }
   402 
   401 
   403   // Declares that only regions i s.t. 0 <= i < new_n_regs are in use.
   402   // Declares that only regions i s.t. 0 <= i < new_n_regs are in use.
   404   static void shrink_heap(uint new_n_regs) {
   403   static void shrink_heap(uint new_n_regs) {