< prev index next >

src/hotspot/share/gc/g1/g1FullCollector.cpp

Print this page
@@ -24,10 +24,11 @@
  
  #include "precompiled.hpp"
  #include "classfile/systemDictionary.hpp"
  #include "code/codeCache.hpp"
  #include "compiler/oopMap.hpp"
+ #include "gc/g1/g1BarrierSet.hpp"
  #include "gc/g1/g1CollectedHeap.hpp"
  #include "gc/g1/g1FullCollector.inline.hpp"
  #include "gc/g1/g1FullGCAdjustTask.hpp"
  #include "gc/g1/g1FullGCCompactTask.hpp"
  #include "gc/g1/g1FullGCMarker.inline.hpp"

@@ -185,10 +186,12 @@
    // Clear and activate derived pointer collection.
    clear_and_activate_derived_pointers();
  }
  
  void G1FullCollector::collect() {
+   CodeCache::increment_marking_cycle();
+ 
    phase1_mark_live_objects();
    verify_after_marking();
  
    // Don't add any more derived pointers during later phases
    deactivate_derived_pointers();

@@ -196,10 +199,12 @@
    phase2_prepare_compaction();
  
    phase3_adjust_pointers();
  
    phase4_do_compaction();
+ 
+   CodeCache::increment_marking_cycle();
  }
  
  void G1FullCollector::complete_collection() {
    // Restore all marks.
    restore_marks();
< prev index next >