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 err_msg("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 |