diff src/share/vm/gc_implementation/parNew/parNewGeneration.cpp @ 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 da91efe96a93
children ca0a78017dc7
line wrap: on
line diff
--- a/src/share/vm/gc_implementation/parNew/parNewGeneration.cpp	Wed Oct 03 20:31:41 2012 +0200
+++ b/src/share/vm/gc_implementation/parNew/parNewGeneration.cpp	Thu Oct 04 10:04:13 2012 -0700
@@ -1037,7 +1037,7 @@
 
   adjust_desired_tenuring_threshold();
   if (ResizePLAB) {
-    plab_stats()->adjust_desired_plab_sz();
+    plab_stats()->adjust_desired_plab_sz(n_workers);
   }
 
   if (PrintGC && !PrintGCDetails) {