hotspot/src/share/vm/services/memRecorder.cpp
changeset 15452 3bfde2dea09d
parent 15104 f5d78994619f
child 18086 f44cf213a775
--- a/hotspot/src/share/vm/services/memRecorder.cpp	Fri Feb 01 13:30:12 2013 -0500
+++ b/hotspot/src/share/vm/services/memRecorder.cpp	Fri Feb 01 23:48:08 2013 +0100
@@ -55,7 +55,7 @@
 MemRecorder::MemRecorder() {
   assert(MemTracker::is_on(), "Native memory tracking is off");
   Atomic::inc(&_instance_count);
-  debug_only(set_generation();)
+  set_generation();
 
   if (MemTracker::track_callsite()) {
     _pointer_records = new (std::nothrow)FixedSizeMemPointerArray<SeqMemPointerRecordEx,
@@ -151,11 +151,12 @@
 }
 
 
-#ifdef ASSERT
 void MemRecorder::set_generation() {
   _generation = SequenceGenerator::current_generation();
 }
 
+#ifdef ASSERT
+
 void MemRecorder::check_dup_seq(jint seq) const {
   MemPointerArrayIteratorImpl itr(_pointer_records);
   MemPointerRecord* rc = (MemPointerRecord*)itr.current();