hotspot/src/share/vm/gc/g1/g1EvacStats.cpp
changeset 33105 294e48b4f704
parent 32822 c49bdfeb5941
child 33597 5d42601232b1
equal deleted inserted replaced
33104:a7c0f60a1294 33105:294e48b4f704
    43     assert(is_object_aligned(max_size()) && min_size() <= max_size(),
    43     assert(is_object_aligned(max_size()) && min_size() <= max_size(),
    44            "PLAB clipping computation may be incorrect");
    44            "PLAB clipping computation may be incorrect");
    45 
    45 
    46     if (_allocated == 0) {
    46     if (_allocated == 0) {
    47       assert((_unused == 0),
    47       assert((_unused == 0),
    48              err_msg("Inconsistency in PLAB stats: "
    48              "Inconsistency in PLAB stats: "
    49                      "_allocated: " SIZE_FORMAT ", "
    49              "_allocated: " SIZE_FORMAT ", "
    50                      "_wasted: " SIZE_FORMAT ", "
    50              "_wasted: " SIZE_FORMAT ", "
    51                      "_region_end_waste: " SIZE_FORMAT ", "
    51              "_region_end_waste: " SIZE_FORMAT ", "
    52                      "_unused: " SIZE_FORMAT ", "
    52              "_unused: " SIZE_FORMAT ", "
    53                      "_used  : " SIZE_FORMAT,
    53              "_used  : " SIZE_FORMAT,
    54                      _allocated, _wasted, _region_end_waste, _unused, used()));
    54              _allocated, _wasted, _region_end_waste, _unused, used());
    55       _allocated = 1;
    55       _allocated = 1;
    56     }
    56     }
    57     // The size of the PLAB caps the amount of space that can be wasted at the
    57     // The size of the PLAB caps the amount of space that can be wasted at the
    58     // end of the collection. In the worst case the last PLAB could be completely
    58     // end of the collection. In the worst case the last PLAB could be completely
    59     // empty.
    59     // empty.