hotspot/src/share/vm/services/memRecorder.hpp
changeset 15452 3bfde2dea09d
parent 15104 f5d78994619f
child 18086 f44cf213a775
--- a/hotspot/src/share/vm/services/memRecorder.hpp	Fri Feb 01 13:30:12 2013 -0500
+++ b/hotspot/src/share/vm/services/memRecorder.hpp	Fri Feb 01 23:48:08 2013 +0100
@@ -213,7 +213,7 @@
   // used for linked list
   MemRecorder*             _next;
   // active recorder can only record a certain generation data
-  debug_only(unsigned long _generation;)
+  unsigned long            _generation;
 
  protected:
   _NOINLINE_ MemRecorder();
@@ -251,6 +251,8 @@
 
   SequencedRecordIterator pointer_itr();
 
+  // return the generation of this recorder which it belongs to
+  unsigned long get_generation() const { return _generation; }
  protected:
   // number of MemRecorder instance
   static volatile jint _instance_count;
@@ -263,7 +265,7 @@
   static int sort_record_fn(const void* e1, const void* e2);
 
   debug_only(void check_dup_seq(jint seq) const;)
-  debug_only(void set_generation();)
+  void set_generation();
 };
 
 #endif // SHARE_VM_SERVICES_MEM_RECORDER_HPP