src/share/vm/services/memRecorder.hpp
Print this page
rev 3901 : JDK-8005012: Add WB APIs to better support NMT testing
Summary:
@@ -210,11 +210,11 @@
private:
// 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();
~MemRecorder();
@@ -248,10 +248,12 @@
_pointer_records->clear();
}
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;
private:
@@ -260,9 +262,9 @@
// 2. allocation type
// 3. sequence number
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