Print this page
rev 3905 : 8001424: G1: Rename certain G1-specific flags
Summary: Rename G1DefaultMinNewGenPercent, G1DefaultMaxNewGenPercent, and G1OldCSetRegionLiveThresholdPercent to G1NewSizePercent, G1MaxNewSizePercent, and G1MixedGCLiveThresholdPercent respectively. Continue, however, to accept the previous names. If both are specified, the new name takes precedence.
Reviewed-by:

Split Close
Expand all
Collapse all
          --- old/src/share/vm/gc_implementation/g1/collectionSetChooser.cpp
          +++ new/src/share/vm/gc_implementation/g1/collectionSetChooser.cpp
↓ open down ↓ 77 lines elided ↑ open up ↑
  78   78    // that a growable array object must be on C heap if elements are.
  79   79    //
  80   80    // Note: containing object is allocated on C heap since it is CHeapObj.
  81   81    //
  82   82    _regions((ResourceObj::set_allocation_type((address) &_regions,
  83   83                                               ResourceObj::C_HEAP),
  84   84                    100), true /* C_Heap */),
  85   85      _curr_index(0), _length(0), _first_par_unreserved_idx(0),
  86   86      _region_live_threshold_bytes(0), _remaining_reclaimable_bytes(0) {
  87   87    _region_live_threshold_bytes =
  88      -    HeapRegion::GrainBytes * (size_t) G1OldCSetRegionLiveThresholdPercent / 100;
       88 +    HeapRegion::GrainBytes * (size_t) G1MixedGCLiveThresholdPercent / 100;
  89   89  }
  90   90  
  91   91  #ifndef PRODUCT
  92   92  void CollectionSetChooser::verify() {
  93   93    guarantee(_length <= regions_length(),
  94   94           err_msg("_length: %u regions length: %u", _length, regions_length()));
  95   95    guarantee(_curr_index <= _length,
  96   96              err_msg("_curr_index: %u _length: %u", _curr_index, _length));
  97   97    uint index = 0;
  98   98    size_t sum_of_reclaimable_bytes = 0;
↓ open down ↓ 155 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX