< prev index next >

src/hotspot/share/oops/cpCache.cpp

Print this page
*** 25,10 ***
--- 25,11 ---
  #include "precompiled.hpp"
  #include "cds/heapShared.hpp"
  #include "classfile/resolutionErrors.hpp"
  #include "classfile/systemDictionary.hpp"
  #include "classfile/vmClasses.hpp"
+ #include "code/codeCache.hpp"
  #include "interpreter/bytecodeStream.hpp"
  #include "interpreter/bytecodes.hpp"
  #include "interpreter/interpreter.hpp"
  #include "interpreter/linkResolver.hpp"
  #include "interpreter/rewriter.hpp"

*** 703,10 ***
--- 704,15 ---
        entry_at(cpci)->initialize_resolved_reference_index(ref);
      }
    }
  }
  
+ // Record the GC marking cycle when redefined vs. when found in the InstanceStackChunks.
+ void ConstantPoolCache::record_marking_cycle() {
+   _marking_cycle = CodeCache::marking_cycle();
+ }
+ 
  void ConstantPoolCache::verify_just_initialized() {
    DEBUG_ONLY(walk_entries_for_initialization(/*check_only = */ true));
  }
  
  void ConstantPoolCache::remove_unshareable_info() {
< prev index next >