Mercurial > hg > truffle
comparison src/share/vm/gc_implementation/shared/parGCAllocBuffer.cpp @ 14310:1e1c8d358b52
8030177: G1: Enable TLAB resizing
Reviewed-by: tschatzl, stefank, jmasa
author | brutisso |
---|---|
date | Mon, 27 Jan 2014 13:14:53 +0100 |
parents | 63a4eb8bcd23 |
children | 4ca6dc0799b6 |
comparison
equal
deleted
inserted
replaced
14309:63a4eb8bcd23 | 14310:1e1c8d358b52 |
---|---|
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", " |