Print this page


Split Close
Expand all
Collapse all
          --- old/src/share/vm/gc_implementation/parallelScavenge/psMarkSweep.cpp
          +++ new/src/share/vm/gc_implementation/parallelScavenge/psMarkSweep.cpp
↓ open down ↓ 50 lines elided ↑ open up ↑
  51   51  #include "utilities/events.hpp"
  52   52  #include "utilities/stack.inline.hpp"
  53   53  
  54   54  elapsedTimer        PSMarkSweep::_accumulated_time;
  55   55  unsigned int        PSMarkSweep::_total_invocations = 0;
  56   56  jlong               PSMarkSweep::_time_of_last_gc   = 0;
  57   57  CollectorCounters*  PSMarkSweep::_counters = NULL;
  58   58  
  59   59  void PSMarkSweep::initialize() {
  60   60    MemRegion mr = Universe::heap()->reserved_region();
  61      -  _ref_processor = new ReferenceProcessor(mr,
  62      -                                          true,    // atomic_discovery
  63      -                                          false);  // mt_discovery
       61 +  _ref_processor = new ReferenceProcessor(mr);     // a vanilla ref proc
  64   62    _counters = new CollectorCounters("PSMarkSweep", 1);
  65   63  }
  66   64  
  67   65  // This method contains all heap specific policy for invoking mark sweep.
  68   66  // PSMarkSweep::invoke_no_policy() will only attempt to mark-sweep-compact
  69   67  // the heap. It will do nothing further. If we need to bail out for policy
  70   68  // reasons, scavenge before full gc, or any other specialized behavior, it
  71   69  // needs to be added here.
  72   70  //
  73   71  // Note that this method should only be called from the vm_thread while
↓ open down ↓ 618 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX