6659981: +ParallelRefProcEnabled crashes on single core platform

Disable parallel reference processing when there are no worker threads

Reviewed-by: apetrusenko, pbk, jmasa, tonyp
This commit is contained in:
Y. Srinivas Ramakrishna 2008-02-12 16:07:46 -08:00
parent 527390207c
commit 41895dc06d

@ -85,7 +85,7 @@ ReferenceProcessor* ReferenceProcessor::create_ref_processor(
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");
}