hotspot/src/share/vm/services/memBaseline.hpp
changeset 27162 0a4a7276949b
parent 26288 631bf42cf7c2
child 46711 0ccef2260315
--- a/hotspot/src/share/vm/services/memBaseline.hpp	Thu Oct 09 16:41:28 2014 +0400
+++ b/hotspot/src/share/vm/services/memBaseline.hpp	Fri Oct 10 19:36:12 2014 +0000
@@ -90,10 +90,6 @@
     _class_count(0) {
   }
 
-  ~MemBaseline() {
-    reset();
-  }
-
   bool baseline(bool summaryOnly = true);
 
   BaselineType baseline_type() const { return _baseline_type; }
@@ -169,8 +165,7 @@
   // reset the baseline for reuse
   void reset() {
     _baseline_type = Not_baselined;
-    _malloc_memory_snapshot.reset();
-    _virtual_memory_snapshot.reset();
+    // _malloc_memory_snapshot and _virtual_memory_snapshot are copied over.
     _class_count  = 0;
 
     _malloc_sites.clear();