changeset 56493:8ebc8f74f2d2

8229406: ZGC: Fix incorrect statistics Reviewed-by: pliden, eosterlund Contributed-by: albert.th@alibaba-inc.com
author pliden
date Mon, 12 Aug 2019 10:49:40 +0200
parents 05ff6e27de45
children 145300cc8ea6
files src/hotspot/share/gc/z/zStat.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);
   }
 };