Print this page
rev 2691 : [mq]: g1-reference-processing

Split Close
Expand all
Collapse all
          --- old/src/share/vm/gc_implementation/parallelScavenge/psParallelCompact.cpp
          +++ new/src/share/vm/gc_implementation/parallelScavenge/psParallelCompact.cpp
↓ open down ↓ 2061 lines elided ↑ open up ↑
2062 2062      if (TraceGen1Time) accumulated_time()->start();
2063 2063  
2064 2064      // Let the size policy know we're starting
2065 2065      size_policy->major_collection_begin();
2066 2066  
2067 2067      // When collecting the permanent generation methodOops may be moving,
2068 2068      // so we either have to flush all bcp data or convert it into bci.
2069 2069      CodeCache::gc_prologue();
2070 2070      Threads::gc_prologue();
2071 2071  
2072      -    NOT_PRODUCT(ref_processor()->verify_no_references_recorded());
2073 2072      COMPILER2_PRESENT(DerivedPointerTable::clear());
2074 2073  
2075      -    ref_processor()->enable_discovery();
     2074 +    ref_processor()->enable_discovery(true /*verify_disabled*/, true /*verify_no_refs*/);
2076 2075      ref_processor()->setup_policy(maximum_heap_compaction);
2077 2076  
2078 2077      bool marked_for_unloading = false;
2079 2078  
2080 2079      marking_start.update();
2081 2080      marking_phase(vmthread_cm, maximum_heap_compaction);
2082 2081  
2083 2082  #ifndef PRODUCT
2084 2083      if (TraceParallelOldGCMarkingPhase) {
2085 2084        gclog_or_tty->print_cr("marking_phase: cas_tries %d  cas_retries %d "
↓ open down ↓ 1448 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX