87 // Compute desired plab size and latch result for later |
87 // Compute desired plab size and latch result for later |
88 // use. This should be called once at the end of parallel |
88 // use. This should be called once at the end of parallel |
89 // scavenge; it clears the sensor accumulators. |
89 // scavenge; it clears the sensor accumulators. |
90 void PLABStats::adjust_desired_plab_sz(uint no_of_gc_workers) { |
90 void PLABStats::adjust_desired_plab_sz(uint no_of_gc_workers) { |
91 assert(ResizePLAB, "Not set"); |
91 assert(ResizePLAB, "Not set"); |
|
92 |
|
93 assert(is_object_aligned(max_size()) && min_size() <= max_size(), |
|
94 "PLAB clipping computation may be incorrect"); |
|
95 |
92 if (_allocated == 0) { |
96 if (_allocated == 0) { |
93 assert(_unused == 0, |
97 assert(_unused == 0, |
94 err_msg("Inconsistency in PLAB stats: " |
98 err_msg("Inconsistency in PLAB stats: " |
95 "_allocated: "SIZE_FORMAT", " |
99 "_allocated: "SIZE_FORMAT", " |
96 "_wasted: "SIZE_FORMAT", " |
100 "_wasted: "SIZE_FORMAT", " |