6659981: +ParallelRefProcEnabled crashes on single core platform
Summary: Disable parallel reference processing when there are no worker threads
Reviewed-by: apetrusenko, pbk, jmasa, tonyp
--- 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");
}