< prev index next >

src/hotspot/share/oops/cpCache.hpp

Print this page
@@ -410,10 +410,14 @@
    // stored in the ConstantPool, which is read-only.
    // Array of resolved objects from the constant pool and map from resolved
    // object index to original constant pool index
    OopHandle            _resolved_references;
    Array<u2>*           _reference_map;
+ 
+   // RedefineClasses support
+   uint64_t             _marking_cycle;
+ 
    // The narrowOop pointer to the archived resolved_references. Set at CDS dump
    // time when caching java heap object is supported.
    CDS_JAVA_HEAP_ONLY(int _archived_references_index;)
  
    // Sizing

@@ -503,10 +507,12 @@
  
    // RedefineClasses support
    DEBUG_ONLY(bool on_stack() { return false; })
    void deallocate_contents(ClassLoaderData* data);
    bool is_klass() const { return false; }
+   void record_marking_cycle();
+   uint64_t marking_cycle() { return _marking_cycle; }
  
    // Printing
    void print_on(outputStream* st) const;
    void print_value_on(outputStream* st) const;
  
< prev index next >