8229406: ZGC: Fix incorrect statistics
authorpliden
Mon, 12 Aug 2019 10:49:40 +0200
changeset 57711 8ebc8f74f2d2
parent 57710 05ff6e27de45
child 57712 145300cc8ea6
8229406: ZGC: Fix incorrect statistics Reviewed-by: pliden, eosterlund Contributed-by: albert.th@alibaba-inc.com
src/hotspot/share/gc/z/zStat.cpp
--- a/src/hotspot/share/gc/z/zStat.cpp	Mon Aug 12 10:02:25 2019 +0200
+++ b/src/hotspot/share/gc/z/zStat.cpp	Mon Aug 12 10:49:40 2019 +0200
@@ -63,7 +63,7 @@
 
   void add(const ZStatSamplerData& new_sample) {
     _nsamples += new_sample._nsamples;
-    _sum += new_sample._nsamples;
+    _sum += new_sample._sum;
     _max = MAX2(_max, new_sample._max);
   }
 };