src/share/vm/gc_implementation/shared/parGCAllocBuffer.cpp

changeset 6376
cfd4aac53239
parent 4130
2e6857353b2c
child 6680
78bbf4d43a14
equal deleted inserted replaced
6375:085b304a1cc5 6376:cfd4aac53239
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", "

mercurial