src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp

Print this page

        

*** 2217,2234 **** // * A full GC enables (non-MT) reference discovery and // processes any discovered references. SharedHeap::ref_processing_init(); MemRegion mr = reserved_region(); ! _ref_processor = ReferenceProcessor::create_ref_processor( ! mr, // span false, // Reference discovery is not atomic ! true, // mt_discovery ! &_is_alive_closure, // is alive closure ! // for efficiency ! ParallelGCThreads, ! ParallelRefProcEnabled, true); // Setting next fields of discovered // lists requires a barrier. } size_t G1CollectedHeap::capacity() const { --- 2217,2234 ---- // * A full GC enables (non-MT) reference discovery and // processes any discovered references. SharedHeap::ref_processing_init(); MemRegion mr = reserved_region(); ! _ref_processor = ! new ReferenceProcessor(mr, // span ! ParallelRefProcEnabled, // mt processing ! ParallelGCThreads, // degree of mt processing ! true, // mt discovery ! ConcGCThreads, // degree of mt discovery false, // Reference discovery is not atomic ! &_is_alive_closure, // is alive closure for efficiency true); // Setting next fields of discovered // lists requires a barrier. } size_t G1CollectedHeap::capacity() const {