1.1 --- a/src/share/vm/services/memRecorder.hpp Fri Feb 01 13:30:12 2013 -0500 1.2 +++ b/src/share/vm/services/memRecorder.hpp Fri Feb 01 23:48:08 2013 +0100 1.3 @@ -213,7 +213,7 @@ 1.4 // used for linked list 1.5 MemRecorder* _next; 1.6 // active recorder can only record a certain generation data 1.7 - debug_only(unsigned long _generation;) 1.8 + unsigned long _generation; 1.9 1.10 protected: 1.11 _NOINLINE_ MemRecorder(); 1.12 @@ -251,6 +251,8 @@ 1.13 1.14 SequencedRecordIterator pointer_itr(); 1.15 1.16 + // return the generation of this recorder which it belongs to 1.17 + unsigned long get_generation() const { return _generation; } 1.18 protected: 1.19 // number of MemRecorder instance 1.20 static volatile jint _instance_count; 1.21 @@ -263,7 +265,7 @@ 1.22 static int sort_record_fn(const void* e1, const void* e2); 1.23 1.24 debug_only(void check_dup_seq(jint seq) const;) 1.25 - debug_only(void set_generation();) 1.26 + void set_generation(); 1.27 }; 1.28 1.29 #endif // SHARE_VM_SERVICES_MEM_RECORDER_HPP