Mercurial > hg > graal-jvmci-8
changeset 5:f21b879b4c72
6659981: +ParallelRefProcEnabled crashes on single core platform
Summary: Disable parallel reference processing when there are no worker threads
Reviewed-by: apetrusenko, pbk, jmasa, tonyp
author | ysr |
---|---|
date | Tue, 12 Feb 2008 16:07:46 -0800 |
parents | 5ff61c9f5601 |
children | 73e96e5c30df |
files | src/share/vm/memory/referenceProcessor.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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* 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"); }