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:
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");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user