6659981: +ParallelRefProcEnabled crashes on single core platform

Tue, 12 Feb 2008 16:07:46 -0800

author
ysr
date
Tue, 12 Feb 2008 16:07:46 -0800
changeset 440
f21b879b4c72
parent 439
5ff61c9f5601
child 441
73e96e5c30df

6659981: +ParallelRefProcEnabled crashes on single core platform
Summary: Disable parallel reference processing when there are no worker threads
Reviewed-by: apetrusenko, pbk, jmasa, tonyp

src/share/vm/memory/referenceProcessor.cpp file | annotate | diff | comparison | revisions
     1.1 --- a/src/share/vm/memory/referenceProcessor.cpp	Mon Feb 11 15:40:07 2008 -0800
     1.2 +++ b/src/share/vm/memory/referenceProcessor.cpp	Tue Feb 12 16:07:46 2008 -0800
     1.3 @@ -85,7 +85,7 @@
     1.4    ReferenceProcessor* rp =
     1.5      new ReferenceProcessor(span, atomic_discovery,
     1.6                             mt_discovery, mt_degree,
     1.7 -                           mt_processing);
     1.8 +                           mt_processing && (parallel_gc_threads > 0));
     1.9    if (rp == NULL) {
    1.10      vm_exit_during_initialization("Could not allocate ReferenceProcessor object");
    1.11    }

mercurial