src/hotspot/share/gc/z/zStat.cpp
changeset 57711 8ebc8f74f2d2
parent 57660 c0a7c7161d3a
child 58125 9b4717ca9bd1
equal deleted inserted replaced
57710:05ff6e27de45 57711:8ebc8f74f2d2
    61     _sum(0),
    61     _sum(0),
    62     _max(0) {}
    62     _max(0) {}
    63 
    63 
    64   void add(const ZStatSamplerData& new_sample) {
    64   void add(const ZStatSamplerData& new_sample) {
    65     _nsamples += new_sample._nsamples;
    65     _nsamples += new_sample._nsamples;
    66     _sum += new_sample._nsamples;
    66     _sum += new_sample._sum;
    67     _max = MAX2(_max, new_sample._max);
    67     _max = MAX2(_max, new_sample._max);
    68   }
    68   }
    69 };
    69 };
    70 
    70 
    71 struct ZStatCounterData {
    71 struct ZStatCounterData {