6659981: +ParallelRefProcEnabled crashes on single core platform
authorysr
Tue, 12 Feb 2008 16:07:46 -0800
changeset 178 3f20890fb323
parent 177 c116e4ff13a1
child 179 59e3abf83f72
6659981: +ParallelRefProcEnabled crashes on single core platform Summary: Disable parallel reference processing when there are no worker threads Reviewed-by: apetrusenko, pbk, jmasa, tonyp
hotspot/src/share/vm/memory/referenceProcessor.cpp
--- a/hotspot/src/share/vm/memory/referenceProcessor.cpp	Mon Feb 11 15:40:07 2008 -0800
+++ b/hotspot/src/share/vm/memory/referenceProcessor.cpp	Tue Feb 12 16:07:46 2008 -0800
@@ -85,7 +85,7 @@
   ReferenceProcessor* rp =
     new ReferenceProcessor(span, atomic_discovery,
                            mt_discovery, mt_degree,
-                           mt_processing);
+                           mt_processing && (parallel_gc_threads > 0));
   if (rp == NULL) {
     vm_exit_during_initialization("Could not allocate ReferenceProcessor object");
   }