提交 5eae83d0 编写于 作者: Y ysr

6659981: +ParallelRefProcEnabled crashes on single core platform

Summary: Disable parallel reference processing when there are no worker threads
Reviewed-by: apetrusenko, pbk, jmasa, tonyp
上级 2f6e89e2
...@@ -85,7 +85,7 @@ ReferenceProcessor* ReferenceProcessor::create_ref_processor( ...@@ -85,7 +85,7 @@ ReferenceProcessor* ReferenceProcessor::create_ref_processor(
ReferenceProcessor* rp = ReferenceProcessor* rp =
new ReferenceProcessor(span, atomic_discovery, new ReferenceProcessor(span, atomic_discovery,
mt_discovery, mt_degree, mt_discovery, mt_degree,
mt_processing); mt_processing && (parallel_gc_threads > 0));
if (rp == NULL) { if (rp == NULL) {
vm_exit_during_initialization("Could not allocate ReferenceProcessor object"); vm_exit_during_initialization("Could not allocate ReferenceProcessor object");
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册