Mercurial > hg > graal-jvmci-8
comparison src/share/vm/memory/referenceProcessor.cpp @ 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 | a61af66fc99e |
children | ba764ed4b6f2 |
comparison
equal
deleted
inserted
replaced
4:5ff61c9f5601 | 5:f21b879b4c72 |
---|---|
83 mt_degree = parallel_gc_threads; | 83 mt_degree = parallel_gc_threads; |
84 } | 84 } |
85 ReferenceProcessor* rp = | 85 ReferenceProcessor* rp = |
86 new ReferenceProcessor(span, atomic_discovery, | 86 new ReferenceProcessor(span, atomic_discovery, |
87 mt_discovery, mt_degree, | 87 mt_discovery, mt_degree, |
88 mt_processing); | 88 mt_processing && (parallel_gc_threads > 0)); |
89 if (rp == NULL) { | 89 if (rp == NULL) { |
90 vm_exit_during_initialization("Could not allocate ReferenceProcessor object"); | 90 vm_exit_during_initialization("Could not allocate ReferenceProcessor object"); |
91 } | 91 } |
92 rp->set_is_alive_non_header(is_alive_non_header); | 92 rp->set_is_alive_non_header(is_alive_non_header); |
93 return rp; | 93 return rp; |