annotate src/hotspot/share/gc/g1/g1RemSetSummary.hpp @ 54526:ee29b516a36a

revert changes
author jlaskey
date Wed, 23 Jan 2019 16:09:20 -0400
parents 2956d0ece7a9
children d6058bd73982
rev   line source
tschatzl@17854 1 /*
coleenp@54304 2 * Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.
tschatzl@17854 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
tschatzl@17854 4 *
tschatzl@17854 5 * This code is free software; you can redistribute it and/or modify it
tschatzl@17854 6 * under the terms of the GNU General Public License version 2 only, as
tschatzl@17854 7 * published by the Free Software Foundation.
tschatzl@17854 8 *
tschatzl@17854 9 * This code is distributed in the hope that it will be useful, but WITHOUT
tschatzl@17854 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
tschatzl@17854 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
tschatzl@17854 12 * version 2 for more details (a copy is included in the LICENSE file that
tschatzl@17854 13 * accompanied this code).
tschatzl@17854 14 *
tschatzl@17854 15 * You should have received a copy of the GNU General Public License version
tschatzl@17854 16 * 2 along with this work; if not, write to the Free Software Foundation,
tschatzl@17854 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
tschatzl@17854 18 *
tschatzl@17854 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
tschatzl@17854 20 * or visit www.oracle.com if you need additional information or have any
tschatzl@17854 21 * questions.
tschatzl@17854 22 *
tschatzl@17854 23 */
tschatzl@17854 24
coleenp@54304 25 #ifndef SHARE_GC_G1_G1REMSETSUMMARY_HPP
coleenp@54304 26 #define SHARE_GC_G1_G1REMSETSUMMARY_HPP
tschatzl@17854 27
tschatzl@35190 28 #include "utilities/globalDefinitions.hpp"
tschatzl@17854 29 #include "utilities/ostream.hpp"
tschatzl@17854 30
tschatzl@17854 31 class G1RemSet;
tschatzl@17854 32
tschatzl@17854 33 // A G1RemSetSummary manages statistical information about the G1RemSet
tschatzl@17854 34
coleenp@49857 35 class G1RemSetSummary {
tschatzl@17854 36 private:
tschatzl@17854 37 friend class GetRSThreadVTimeClosure;
tschatzl@17854 38
tschatzl@46652 39 G1RemSet* _rem_set;
tschatzl@17854 40
tschatzl@46614 41 size_t _num_conc_refined_cards;
tschatzl@17854 42 size_t _num_processed_buf_mutator;
tschatzl@17854 43 size_t _num_processed_buf_rs_threads;
tschatzl@17854 44
tschatzl@17854 45 size_t _num_coarsenings;
tschatzl@17854 46
tschatzl@46652 47 size_t _num_vtimes;
tschatzl@17854 48 double* _rs_threads_vtimes;
tschatzl@17854 49
tschatzl@17854 50 double _sampling_thread_vtime;
tschatzl@17854 51
tschatzl@17854 52 void set_rs_thread_vtime(uint thread, double value);
tschatzl@17854 53 void set_sampling_thread_vtime(double value) {
tschatzl@17854 54 _sampling_thread_vtime = value;
tschatzl@17854 55 }
tschatzl@17854 56
tschatzl@17854 57 // update this summary with current data from various places
tschatzl@17854 58 void update();
tschatzl@17854 59
tschatzl@17854 60 public:
tschatzl@35190 61 G1RemSetSummary();
tschatzl@46652 62 G1RemSetSummary(G1RemSet* remset);
tschatzl@46652 63
tschatzl@35190 64 ~G1RemSetSummary();
tschatzl@17854 65
tschatzl@17854 66 // set the counters in this summary to the values of the others
tschatzl@17854 67 void set(G1RemSetSummary* other);
tschatzl@17854 68 // subtract all counters from the other summary, and set them in the current
tschatzl@17854 69 void subtract_from(G1RemSetSummary* other);
tschatzl@17854 70
tschatzl@17854 71 void print_on(outputStream* out);
tschatzl@17854 72
tschatzl@17854 73 double rs_thread_vtime(uint thread) const;
tschatzl@17854 74
tschatzl@17854 75 double sampling_thread_vtime() const {
tschatzl@17854 76 return _sampling_thread_vtime;
tschatzl@17854 77 }
tschatzl@17854 78
tschatzl@46614 79 size_t num_conc_refined_cards() const {
tschatzl@46614 80 return _num_conc_refined_cards;
tschatzl@17854 81 }
tschatzl@17854 82
tschatzl@17854 83 size_t num_processed_buf_mutator() const {
tschatzl@17854 84 return _num_processed_buf_mutator;
tschatzl@17854 85 }
tschatzl@17854 86
tschatzl@17854 87 size_t num_processed_buf_rs_threads() const {
tschatzl@17854 88 return _num_processed_buf_rs_threads;
tschatzl@17854 89 }
tschatzl@17854 90
tschatzl@17854 91 size_t num_processed_buf_total() const {
tschatzl@17854 92 return num_processed_buf_mutator() + num_processed_buf_rs_threads();
tschatzl@17854 93 }
tschatzl@17854 94
tschatzl@17854 95 size_t num_coarsenings() const {
tschatzl@17854 96 return _num_coarsenings;
tschatzl@17854 97 }
tschatzl@17854 98 };
tschatzl@17854 99
coleenp@54304 100 #endif // SHARE_GC_G1_G1REMSETSUMMARY_HPP