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

changeset 4130
2e6857353b2c
parent 4067
b2ef234911c9
child 6376
cfd4aac53239
     1.1 --- a/src/share/vm/gc_implementation/shared/parGCAllocBuffer.cpp	Wed Oct 03 20:31:41 2012 +0200
     1.2 +++ b/src/share/vm/gc_implementation/shared/parGCAllocBuffer.cpp	Thu Oct 04 10:04:13 2012 -0700
     1.3 @@ -87,7 +87,7 @@
     1.4  // Compute desired plab size and latch result for later
     1.5  // use. This should be called once at the end of parallel
     1.6  // scavenge; it clears the sensor accumulators.
     1.7 -void PLABStats::adjust_desired_plab_sz() {
     1.8 +void PLABStats::adjust_desired_plab_sz(uint no_of_gc_workers) {
     1.9    assert(ResizePLAB, "Not set");
    1.10    if (_allocated == 0) {
    1.11      assert(_unused == 0,
    1.12 @@ -107,7 +107,7 @@
    1.13      target_refills = 1;
    1.14    }
    1.15    _used = _allocated - _wasted - _unused;
    1.16 -  size_t plab_sz = _used/(target_refills*ParallelGCThreads);
    1.17 +  size_t plab_sz = _used/(target_refills*no_of_gc_workers);
    1.18    if (PrintPLAB) gclog_or_tty->print(" (plab_sz = %d ", plab_sz);
    1.19    // Take historical weighted average
    1.20    _filter.sample(plab_sz);

mercurial