hotspot/src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp
changeset 10528 06fab03478df
parent 10525 5e44fe6a4262
child 10529 9d5bbffbb322
equal deleted inserted replaced
10527:fedb7f148e85 10528:06fab03478df
  1680         _hr_printer.commit(curr, curr_end);
  1680         _hr_printer.commit(curr, curr_end);
  1681         curr = curr_end;
  1681         curr = curr_end;
  1682       }
  1682       }
  1683       assert(curr == mr.end(), "post-condition");
  1683       assert(curr == mr.end(), "post-condition");
  1684     }
  1684     }
       
  1685     g1_policy()->calculate_reserve(n_regions());
  1685   } else {
  1686   } else {
  1686     ergo_verbose0(ErgoHeapSizing,
  1687     ergo_verbose0(ErgoHeapSizing,
  1687                   "did not expand the heap",
  1688                   "did not expand the heap",
  1688                   ergo_format_reason("heap expansion operation failed"));
  1689                   ergo_format_reason("heap expansion operation failed"));
  1689     // The expansion of the virtual storage space was unsuccessful.
  1690     // The expansion of the virtual storage space was unsuccessful.
  1730     assert(mr.start() == new_end, "post-condition");
  1731     assert(mr.start() == new_end, "post-condition");
  1731 
  1732 
  1732     _expansion_regions += num_regions_deleted;
  1733     _expansion_regions += num_regions_deleted;
  1733     update_committed_space(old_end, new_end);
  1734     update_committed_space(old_end, new_end);
  1734     HeapRegionRemSet::shrink_heap(n_regions());
  1735     HeapRegionRemSet::shrink_heap(n_regions());
       
  1736     g1_policy()->calculate_reserve(n_regions());
  1735   } else {
  1737   } else {
  1736     ergo_verbose0(ErgoHeapSizing,
  1738     ergo_verbose0(ErgoHeapSizing,
  1737                   "did not shrink the heap",
  1739                   "did not shrink the heap",
  1738                   ergo_format_reason("heap shrinking operation failed"));
  1740                   ergo_format_reason("heap shrinking operation failed"));
  1739   }
  1741   }