src/share/vm/gc_implementation/g1/heapRegionSet.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File hs-gc9 Sdiff src/share/vm/gc_implementation/g1

src/share/vm/gc_implementation/g1/heapRegionSet.cpp

Print this page




  74   // See comment in verify() about MT safety and verification.
  75   check_mt_safety();
  76   assert(_verify_in_progress,
  77          hrs_ext_msg(this, "verification should be in progress"));
  78 
  79   _verify_in_progress = false;
  80 }
  81 
  82 void HeapRegionSetBase::print_on(outputStream* out, bool print_contents) {
  83   out->cr();
  84   out->print_cr("Set: %s ("PTR_FORMAT")", name(), this);
  85   out->print_cr("  Region Assumptions");
  86   out->print_cr("    humongous         : %s", BOOL_TO_STR(regions_humongous()));
  87   out->print_cr("    empty             : %s", BOOL_TO_STR(regions_empty()));
  88   out->print_cr("  Attributes");
  89   out->print_cr("    length            : %14u", length());
  90   out->print_cr("    total capacity    : "SIZE_FORMAT_W(14)" bytes",
  91                 total_capacity_bytes());
  92 }
  93 
  94 HeapRegionSetBase::HeapRegionSetBase(const char* name, bool humongous, bool empty, bool linked, HRSMtSafeChecker* mt_safety_checker)
  95   : _name(name), _verify_in_progress(false),
  96     _is_humongous(humongous), _is_empty(empty), _is_linked(linked), _mt_safety_checker(mt_safety_checker),
  97     _count()
  98 { }
  99 
 100 //////////////////// HeapRegionSet ////////////////////
 101 
 102 void FreeRegionList::set_unrealistically_long_length(uint len) {
 103   guarantee(_unrealistically_long_length == 0, "should only be set once");
 104   _unrealistically_long_length = len;
 105 }
 106 
 107 void FreeRegionList::fill_in_ext_msg_extra(hrs_ext_msg* msg) {
 108   msg->append(" hd: "PTR_FORMAT" tl: "PTR_FORMAT, head(), tail());
 109 }
 110 
 111 void FreeRegionList::add_as_head(FreeRegionList* from_list) {
 112   check_mt_safety();
 113   from_list->check_mt_safety();
 114 
 115   verify_optional();
 116   from_list->verify_optional();




  74   // See comment in verify() about MT safety and verification.
  75   check_mt_safety();
  76   assert(_verify_in_progress,
  77          hrs_ext_msg(this, "verification should be in progress"));
  78 
  79   _verify_in_progress = false;
  80 }
  81 
  82 void HeapRegionSetBase::print_on(outputStream* out, bool print_contents) {
  83   out->cr();
  84   out->print_cr("Set: %s ("PTR_FORMAT")", name(), this);
  85   out->print_cr("  Region Assumptions");
  86   out->print_cr("    humongous         : %s", BOOL_TO_STR(regions_humongous()));
  87   out->print_cr("    empty             : %s", BOOL_TO_STR(regions_empty()));
  88   out->print_cr("  Attributes");
  89   out->print_cr("    length            : %14u", length());
  90   out->print_cr("    total capacity    : "SIZE_FORMAT_W(14)" bytes",
  91                 total_capacity_bytes());
  92 }
  93 
  94 HeapRegionSetBase::HeapRegionSetBase(const char* name, bool humongous, bool empty, HRSMtSafeChecker* mt_safety_checker)
  95   : _name(name), _verify_in_progress(false),
  96     _is_humongous(humongous), _is_empty(empty), _mt_safety_checker(mt_safety_checker),
  97     _count()
  98 { }
  99 
 100 //////////////////// HeapRegionSet ////////////////////
 101 
 102 void FreeRegionList::set_unrealistically_long_length(uint len) {
 103   guarantee(_unrealistically_long_length == 0, "should only be set once");
 104   _unrealistically_long_length = len;
 105 }
 106 
 107 void FreeRegionList::fill_in_ext_msg_extra(hrs_ext_msg* msg) {
 108   msg->append(" hd: "PTR_FORMAT" tl: "PTR_FORMAT, head(), tail());
 109 }
 110 
 111 void FreeRegionList::add_as_head(FreeRegionList* from_list) {
 112   check_mt_safety();
 113   from_list->check_mt_safety();
 114 
 115   verify_optional();
 116   from_list->verify_optional();


src/share/vm/gc_implementation/g1/heapRegionSet.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File