1.1 --- a/src/share/vm/gc_implementation/concurrentMarkSweep/concurrentMarkSweepGeneration.cpp Thu Sep 22 07:18:51 2011 -0400 1.2 +++ b/src/share/vm/gc_implementation/concurrentMarkSweep/concurrentMarkSweepGeneration.cpp Thu Sep 22 10:57:37 2011 -0700 1.3 @@ -2004,7 +2004,7 @@ 1.4 ReferenceProcessorMTDiscoveryMutator rp_mut_discovery(ref_processor(), false); 1.5 1.6 ref_processor()->set_enqueuing_is_done(false); 1.7 - ref_processor()->enable_discovery(); 1.8 + ref_processor()->enable_discovery(false /*verify_disabled*/, false /*check_no_refs*/); 1.9 ref_processor()->setup_policy(clear_all_soft_refs); 1.10 // If an asynchronous collection finishes, the _modUnionTable is 1.11 // all clear. If we are assuming the collection from an asynchronous 1.12 @@ -3490,8 +3490,8 @@ 1.13 MutexLockerEx x(bitMapLock(), 1.14 Mutex::_no_safepoint_check_flag); 1.15 checkpointRootsInitialWork(asynch); 1.16 - rp->verify_no_references_recorded(); 1.17 - rp->enable_discovery(); // enable ("weak") refs discovery 1.18 + // enable ("weak") refs discovery 1.19 + rp->enable_discovery(true /*verify_disabled*/, true /*check_no_refs*/); 1.20 _collectorState = Marking; 1.21 } else { 1.22 // (Weak) Refs discovery: this is controlled from genCollectedHeap::do_collection 1.23 @@ -3503,7 +3503,8 @@ 1.24 "ref discovery for this generation kind"); 1.25 // already have locks 1.26 checkpointRootsInitialWork(asynch); 1.27 - rp->enable_discovery(); // now enable ("weak") refs discovery 1.28 + // now enable ("weak") refs discovery 1.29 + rp->enable_discovery(true /*verify_disabled*/, false /*verify_no_refs*/); 1.30 _collectorState = Marking; 1.31 } 1.32 SpecializationStats::print();