6659981: +ParallelRefProcEnabled crashes on single core platform
authorysr
Tue Feb 12 16:07:46 2008 -0800 (21 months ago)
changeset 5f21b879b4c72
parent 45ff61c9f5601
child 673e96e5c30df
6659981: +ParallelRefProcEnabled crashes on single core platform
Summary: Disable parallel reference processing when there are no worker threads
Reviewed-by: apetrusenko, pbk, jmasa, tonyp
src/share/vm/memory/referenceProcessor.cpp
--- a/src/share/vm/memory/referenceProcessor.cpp Mon Feb 11 15:40:07 2008 -0800
+++ b/src/share/vm/memory/referenceProcessor.cpp Tue Feb 12 16:07:46 2008 -0800
@@ -85,7 +85,7 @@ ReferenceProcessor* ReferenceProcessor::
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");
}