mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue