Mercurial > hg > graal-jvmci-8
diff src/share/vm/gc_implementation/shared/parGCAllocBuffer.hpp @ 6819:2e6857353b2c
8000311: G1: ParallelGCThreads==0 broken
Summary: Divide by zero error, if ParallelGCThreads is 0, when adjusting the PLAB size.
Reviewed-by: jmasa, jcoomes
author | johnc |
---|---|
date | Thu, 04 Oct 2012 10:04:13 -0700 |
parents | b2ef234911c9 |
children | 87c64c0438fb |
line wrap: on
line diff
--- a/src/share/vm/gc_implementation/shared/parGCAllocBuffer.hpp Wed Oct 03 20:31:41 2012 +0200 +++ b/src/share/vm/gc_implementation/shared/parGCAllocBuffer.hpp Thu Oct 04 10:04:13 2012 -0700 @@ -204,7 +204,8 @@ return _desired_plab_sz; } - void adjust_desired_plab_sz(); // filter computation, latches output to + void adjust_desired_plab_sz(uint no_of_gc_workers); + // filter computation, latches output to // _desired_plab_sz, clears sensor accumulators void add_allocated(size_t v) {