< prev index next >

src/hotspot/share/gc/parallel/psCardTable.hpp

Print this page




  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #ifndef SHARE_GC_PARALLEL_PSCARDTABLE_HPP
  26 #define SHARE_GC_PARALLEL_PSCARDTABLE_HPP
  27 
  28 #include "gc/shared/cardTable.hpp"
  29 #include "oops/oop.hpp"
  30 
  31 class MutableSpace;
  32 class ObjectStartArray;
  33 class PSPromotionManager;

  34 
  35 class PSCardTable: public CardTable {
  36  private:
  37   // Support methods for resizing the card table.
  38   // resize_commit_uncommit() returns true if the pages were committed or
  39   // uncommitted
  40   bool resize_commit_uncommit(int changed_region, MemRegion new_region);
  41   void resize_update_card_table_entries(int changed_region,
  42                                         MemRegion new_region);
  43   void resize_update_committed_table(int changed_region, MemRegion new_region);
  44   void resize_update_covered_table(int changed_region, MemRegion new_region);
  45 
  46   void verify_all_young_refs_precise_helper(MemRegion mr);
  47 
  48   enum ExtendedCardValue {
  49     youngergen_card   = CT_MR_BS_last_reserved + 1,
  50     verify_card       = CT_MR_BS_last_reserved + 5
  51   };
  52 
  53  public:




  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #ifndef SHARE_GC_PARALLEL_PSCARDTABLE_HPP
  26 #define SHARE_GC_PARALLEL_PSCARDTABLE_HPP
  27 
  28 #include "gc/shared/cardTable.hpp"
  29 #include "oops/oop.hpp"
  30 
  31 class MutableSpace;
  32 class ObjectStartArray;
  33 class PSPromotionManager;
  34 class GCTaskQueue;
  35 
  36 class PSCardTable: public CardTable {
  37  private:
  38   // Support methods for resizing the card table.
  39   // resize_commit_uncommit() returns true if the pages were committed or
  40   // uncommitted
  41   bool resize_commit_uncommit(int changed_region, MemRegion new_region);
  42   void resize_update_card_table_entries(int changed_region,
  43                                         MemRegion new_region);
  44   void resize_update_committed_table(int changed_region, MemRegion new_region);
  45   void resize_update_covered_table(int changed_region, MemRegion new_region);
  46 
  47   void verify_all_young_refs_precise_helper(MemRegion mr);
  48 
  49   enum ExtendedCardValue {
  50     youngergen_card   = CT_MR_BS_last_reserved + 1,
  51     verify_card       = CT_MR_BS_last_reserved + 5
  52   };
  53 
  54  public:


< prev index next >