author | tschatzl |
Wed, 24 Jul 2019 11:49:39 +0200 | |
changeset 57508 | 28ab01c06755 |
parent 55740 | b3ff56f955c8 |
child 57973 | e9a0224b45a1 |
permissions | -rw-r--r-- |
13288
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
1 |
/* |
53244
9807daeb47c4
8216167: Update include guards to reflect correct directories
coleenp
parents:
52897
diff
changeset
|
2 |
* Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved. |
13288
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
4 |
* |
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. |
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
8 |
* |
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
13 |
* accompanied this code). |
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
14 |
* |
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
15 |
* You should have received a copy of the GNU General Public License version |
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
18 |
* |
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
20 |
* or visit www.oracle.com if you need additional information or have any |
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
21 |
* questions. |
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
22 |
* |
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
23 |
*/ |
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
24 |
|
53244
9807daeb47c4
8216167: Update include guards to reflect correct directories
coleenp
parents:
52897
diff
changeset
|
25 |
#ifndef SHARE_GC_G1_G1GCPHASETIMES_HPP |
9807daeb47c4
8216167: Update include guards to reflect correct directories
coleenp
parents:
52897
diff
changeset
|
26 |
#define SHARE_GC_G1_G1GCPHASETIMES_HPP |
13288
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
27 |
|
46795
623a5e42deb6
8173335: Improve logging for j.l.ref.reference processing
sangheki
parents:
46778
diff
changeset
|
28 |
#include "gc/shared/referenceProcessorPhaseTimes.hpp" |
51546
b9f6a4427da9
8072498: Multi-thread JNI weak reference processing
kbarrett
parents:
50438
diff
changeset
|
29 |
#include "gc/shared/weakProcessorPhaseTimes.hpp" |
51877
5f931e3e7a63
8196341: Add JFR events for parallel phases of G1
lkorinth
parents:
51546
diff
changeset
|
30 |
#include "jfr/jfrEvents.hpp" |
42557 | 31 |
#include "logging/logLevel.hpp" |
13288
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
32 |
#include "memory/allocation.hpp" |
46681
f17cefd211b4
8183935: G1GCPhaseTimes and G1RootProcessor do not include macros.hpp
mgerdin
parents:
46670
diff
changeset
|
33 |
#include "utilities/macros.hpp" |
13516
f7adc27fb367
7178363: G1: Remove the serial code for PrintGCDetails and make it a special case of the parallel code
brutisso
parents:
13289
diff
changeset
|
34 |
|
29680
e5203ed6d805
8074037: Refactor the G1GCPhaseTime logging to make it easier to add new phases
brutisso
parents:
28379
diff
changeset
|
35 |
class LineBuffer; |
49911
358be4680d12
6672778: G1 should trim task queues more aggressively during evacuation pauses
tschatzl
parents:
49810
diff
changeset
|
36 |
class G1ParScanThreadState; |
46795
623a5e42deb6
8173335: Improve logging for j.l.ref.reference processing
sangheki
parents:
46778
diff
changeset
|
37 |
class STWGCTimer; |
13516
f7adc27fb367
7178363: G1: Remove the serial code for PrintGCDetails and make it a special case of the parallel code
brutisso
parents:
13289
diff
changeset
|
38 |
|
29680
e5203ed6d805
8074037: Refactor the G1GCPhaseTime logging to make it easier to add new phases
brutisso
parents:
28379
diff
changeset
|
39 |
template <class T> class WorkerDataArray; |
13516
f7adc27fb367
7178363: G1: Remove the serial code for PrintGCDetails and make it a special case of the parallel code
brutisso
parents:
13289
diff
changeset
|
40 |
|
13289 | 41 |
class G1GCPhaseTimes : public CHeapObj<mtGC> { |
13288
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
42 |
uint _max_gc_threads; |
35907
57bdb6243428
8148734: G1: Make G1GCPhaseTimes keep track of the start GC time
brutisso
parents:
35163
diff
changeset
|
43 |
jlong _gc_start_counter; |
57bdb6243428
8148734: G1: Make G1GCPhaseTimes keep track of the start GC time
brutisso
parents:
35163
diff
changeset
|
44 |
double _gc_pause_time_ms; |
13288
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
45 |
|
29680
e5203ed6d805
8074037: Refactor the G1GCPhaseTime logging to make it easier to add new phases
brutisso
parents:
28379
diff
changeset
|
46 |
public: |
e5203ed6d805
8074037: Refactor the G1GCPhaseTime logging to make it easier to add new phases
brutisso
parents:
28379
diff
changeset
|
47 |
enum GCParPhases { |
e5203ed6d805
8074037: Refactor the G1GCPhaseTime logging to make it easier to add new phases
brutisso
parents:
28379
diff
changeset
|
48 |
GCWorkerStart, |
e5203ed6d805
8074037: Refactor the G1GCPhaseTime logging to make it easier to add new phases
brutisso
parents:
28379
diff
changeset
|
49 |
ExtRootScan, |
29694
442c3305ba39
8027962: Per-phase timing measurements for strong roots processing
brutisso
parents:
29680
diff
changeset
|
50 |
ThreadRoots, |
442c3305ba39
8027962: Per-phase timing measurements for strong roots processing
brutisso
parents:
29680
diff
changeset
|
51 |
UniverseRoots, |
442c3305ba39
8027962: Per-phase timing measurements for strong roots processing
brutisso
parents:
29680
diff
changeset
|
52 |
JNIRoots, |
442c3305ba39
8027962: Per-phase timing measurements for strong roots processing
brutisso
parents:
29680
diff
changeset
|
53 |
ObjectSynchronizerRoots, |
442c3305ba39
8027962: Per-phase timing measurements for strong roots processing
brutisso
parents:
29680
diff
changeset
|
54 |
ManagementRoots, |
442c3305ba39
8027962: Per-phase timing measurements for strong roots processing
brutisso
parents:
29680
diff
changeset
|
55 |
SystemDictionaryRoots, |
442c3305ba39
8027962: Per-phase timing measurements for strong roots processing
brutisso
parents:
29680
diff
changeset
|
56 |
CLDGRoots, |
442c3305ba39
8027962: Per-phase timing measurements for strong roots processing
brutisso
parents:
29680
diff
changeset
|
57 |
JVMTIRoots, |
54669
ad45b3802d4e
8220623: [JVMCI] Update JVMCI to support JVMCI based Compiler compiled into shared library
kvn
parents:
54465
diff
changeset
|
58 |
AOT_ONLY(AOTCodeRoots COMMA) |
29694
442c3305ba39
8027962: Per-phase timing measurements for strong roots processing
brutisso
parents:
29680
diff
changeset
|
59 |
CMRefRoots, |
442c3305ba39
8027962: Per-phase timing measurements for strong roots processing
brutisso
parents:
29680
diff
changeset
|
60 |
WaitForStrongCLD, |
442c3305ba39
8027962: Per-phase timing measurements for strong roots processing
brutisso
parents:
29680
diff
changeset
|
61 |
WeakCLDRoots, |
55723
95706898c3ea
8227089: Add timing information for merging humongous remembered sets
tschatzl
parents:
55722
diff
changeset
|
62 |
MergeER, |
55510
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
63 |
MergeRS, |
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
64 |
OptMergeRS, |
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
65 |
MergeLB, |
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
66 |
MergeHCC, |
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
67 |
ScanHR, |
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
68 |
OptScanHR, |
29680
e5203ed6d805
8074037: Refactor the G1GCPhaseTime logging to make it easier to add new phases
brutisso
parents:
28379
diff
changeset
|
69 |
CodeRoots, |
54465
c4f16445675a
8218668: Clean up evacuation of optional collection set
tschatzl
parents:
53984
diff
changeset
|
70 |
OptCodeRoots, |
29680
e5203ed6d805
8074037: Refactor the G1GCPhaseTime logging to make it easier to add new phases
brutisso
parents:
28379
diff
changeset
|
71 |
ObjCopy, |
52897
495c05ee2a9a
8213890: Implementation of JEP 344: Abortable Mixed Collections for G1
sjohanss
parents:
51877
diff
changeset
|
72 |
OptObjCopy, |
29680
e5203ed6d805
8074037: Refactor the G1GCPhaseTime logging to make it easier to add new phases
brutisso
parents:
28379
diff
changeset
|
73 |
Termination, |
54465
c4f16445675a
8218668: Clean up evacuation of optional collection set
tschatzl
parents:
53984
diff
changeset
|
74 |
OptTermination, |
29680
e5203ed6d805
8074037: Refactor the G1GCPhaseTime logging to make it easier to add new phases
brutisso
parents:
28379
diff
changeset
|
75 |
Other, |
e5203ed6d805
8074037: Refactor the G1GCPhaseTime logging to make it easier to add new phases
brutisso
parents:
28379
diff
changeset
|
76 |
GCWorkerTotal, |
e5203ed6d805
8074037: Refactor the G1GCPhaseTime logging to make it easier to add new phases
brutisso
parents:
28379
diff
changeset
|
77 |
GCWorkerEnd, |
e5203ed6d805
8074037: Refactor the G1GCPhaseTime logging to make it easier to add new phases
brutisso
parents:
28379
diff
changeset
|
78 |
StringDedupQueueFixup, |
e5203ed6d805
8074037: Refactor the G1GCPhaseTime logging to make it easier to add new phases
brutisso
parents:
28379
diff
changeset
|
79 |
StringDedupTableFixup, |
e5203ed6d805
8074037: Refactor the G1GCPhaseTime logging to make it easier to add new phases
brutisso
parents:
28379
diff
changeset
|
80 |
RedirtyCards, |
39979 | 81 |
YoungFreeCSet, |
82 |
NonYoungFreeCSet, |
|
29680
e5203ed6d805
8074037: Refactor the G1GCPhaseTime logging to make it easier to add new phases
brutisso
parents:
28379
diff
changeset
|
83 |
GCParPhasesSentinel |
e5203ed6d805
8074037: Refactor the G1GCPhaseTime logging to make it easier to add new phases
brutisso
parents:
28379
diff
changeset
|
84 |
}; |
e5203ed6d805
8074037: Refactor the G1GCPhaseTime logging to make it easier to add new phases
brutisso
parents:
28379
diff
changeset
|
85 |
|
54713
040bf087ae39
8221359: Eliminate SATBMarkQueueSet::filter_thread_buffers
kbarrett
parents:
54669
diff
changeset
|
86 |
static const GCParPhases ExtRootScanSubPhasesFirst = ThreadRoots; |
040bf087ae39
8221359: Eliminate SATBMarkQueueSet::filter_thread_buffers
kbarrett
parents:
54669
diff
changeset
|
87 |
static const GCParPhases ExtRootScanSubPhasesLast = WeakCLDRoots; |
53984
31884d19e945
8219369: Add named constants for iterating ExtRootScan phases
tschatzl
parents:
53846
diff
changeset
|
88 |
|
55510
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
89 |
enum GCMergeRSWorkTimes { |
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
90 |
MergeRSMergedSparse, |
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
91 |
MergeRSMergedFine, |
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
92 |
MergeRSMergedCoarse |
46778
f504c6f2eea5
8183121: Add information about scanned and skipped cards during UpdateRS
tschatzl
parents:
46681
diff
changeset
|
93 |
}; |
f504c6f2eea5
8183121: Add information about scanned and skipped cards during UpdateRS
tschatzl
parents:
46681
diff
changeset
|
94 |
|
55510
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
95 |
enum GCScanHRWorkItems { |
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
96 |
ScanHRScannedCards, |
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
97 |
ScanHRScannedBlocks, |
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
98 |
ScanHRClaimedChunks, |
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
99 |
ScanHRScannedOptRefs, |
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
100 |
ScanHRUsedMemory |
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
101 |
}; |
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
102 |
|
57508
28ab01c06755
8228388: Add information about dirty/skipped card for Merge HCC in G1 log
tschatzl
parents:
55740
diff
changeset
|
103 |
enum GCMergeHCCWorkItems { |
28ab01c06755
8228388: Add information about dirty/skipped card for Merge HCC in G1 log
tschatzl
parents:
55740
diff
changeset
|
104 |
MergeHCCDirtyCards, |
28ab01c06755
8228388: Add information about dirty/skipped card for Merge HCC in G1 log
tschatzl
parents:
55740
diff
changeset
|
105 |
MergeHCCSkippedCards |
28ab01c06755
8228388: Add information about dirty/skipped card for Merge HCC in G1 log
tschatzl
parents:
55740
diff
changeset
|
106 |
}; |
28ab01c06755
8228388: Add information about dirty/skipped card for Merge HCC in G1 log
tschatzl
parents:
55740
diff
changeset
|
107 |
|
55510
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
108 |
enum GCMergeLBWorkItems { |
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
109 |
MergeLBProcessedBuffers, |
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
110 |
MergeLBDirtyCards, |
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
111 |
MergeLBSkippedCards |
46571
c70b36f0730d
8178148: Log more detailed information about scan rs phase
tschatzl
parents:
46330
diff
changeset
|
112 |
}; |
c70b36f0730d
8178148: Log more detailed information about scan rs phase
tschatzl
parents:
46330
diff
changeset
|
113 |
|
53846
fe95464806a7
8219096: Merge print_termination_stats code with current logging
tschatzl
parents:
53818
diff
changeset
|
114 |
enum GCObjCopyWorkItems { |
fe95464806a7
8219096: Merge print_termination_stats code with current logging
tschatzl
parents:
53818
diff
changeset
|
115 |
ObjCopyLABWaste, |
fe95464806a7
8219096: Merge print_termination_stats code with current logging
tschatzl
parents:
53818
diff
changeset
|
116 |
ObjCopyLABUndoWaste |
fe95464806a7
8219096: Merge print_termination_stats code with current logging
tschatzl
parents:
53818
diff
changeset
|
117 |
}; |
fe95464806a7
8219096: Merge print_termination_stats code with current logging
tschatzl
parents:
53818
diff
changeset
|
118 |
|
29680
e5203ed6d805
8074037: Refactor the G1GCPhaseTime logging to make it easier to add new phases
brutisso
parents:
28379
diff
changeset
|
119 |
private: |
e5203ed6d805
8074037: Refactor the G1GCPhaseTime logging to make it easier to add new phases
brutisso
parents:
28379
diff
changeset
|
120 |
// Markers for grouping the phases in the GCPhases enum above |
e5203ed6d805
8074037: Refactor the G1GCPhaseTime logging to make it easier to add new phases
brutisso
parents:
28379
diff
changeset
|
121 |
static const int GCMainParPhasesLast = GCWorkerEnd; |
e5203ed6d805
8074037: Refactor the G1GCPhaseTime logging to make it easier to add new phases
brutisso
parents:
28379
diff
changeset
|
122 |
|
e5203ed6d805
8074037: Refactor the G1GCPhaseTime logging to make it easier to add new phases
brutisso
parents:
28379
diff
changeset
|
123 |
WorkerDataArray<double>* _gc_par_phases[GCParPhasesSentinel]; |
46571
c70b36f0730d
8178148: Log more detailed information about scan rs phase
tschatzl
parents:
46330
diff
changeset
|
124 |
|
55510
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
125 |
WorkerDataArray<size_t>* _merge_rs_merged_sparse; |
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
126 |
WorkerDataArray<size_t>* _merge_rs_merged_fine; |
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
127 |
WorkerDataArray<size_t>* _merge_rs_merged_coarse; |
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
128 |
|
57508
28ab01c06755
8228388: Add information about dirty/skipped card for Merge HCC in G1 log
tschatzl
parents:
55740
diff
changeset
|
129 |
WorkerDataArray<size_t>* _merge_hcc_dirty_cards; |
28ab01c06755
8228388: Add information about dirty/skipped card for Merge HCC in G1 log
tschatzl
parents:
55740
diff
changeset
|
130 |
WorkerDataArray<size_t>* _merge_hcc_skipped_cards; |
28ab01c06755
8228388: Add information about dirty/skipped card for Merge HCC in G1 log
tschatzl
parents:
55740
diff
changeset
|
131 |
|
55510
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
132 |
WorkerDataArray<size_t>* _merge_lb_processed_buffers; |
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
133 |
WorkerDataArray<size_t>* _merge_lb_dirty_cards; |
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
134 |
WorkerDataArray<size_t>* _merge_lb_skipped_cards; |
46571
c70b36f0730d
8178148: Log more detailed information about scan rs phase
tschatzl
parents:
46330
diff
changeset
|
135 |
|
55510
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
136 |
WorkerDataArray<size_t>* _scan_hr_scanned_cards; |
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
137 |
WorkerDataArray<size_t>* _scan_hr_scanned_blocks; |
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
138 |
WorkerDataArray<size_t>* _scan_hr_claimed_chunks; |
46571
c70b36f0730d
8178148: Log more detailed information about scan rs phase
tschatzl
parents:
46330
diff
changeset
|
139 |
|
55510
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
140 |
WorkerDataArray<size_t>* _opt_merge_rs_merged_sparse; |
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
141 |
WorkerDataArray<size_t>* _opt_merge_rs_merged_fine; |
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
142 |
WorkerDataArray<size_t>* _opt_merge_rs_merged_coarse; |
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
143 |
|
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
144 |
WorkerDataArray<size_t>* _opt_scan_hr_scanned_cards; |
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
145 |
WorkerDataArray<size_t>* _opt_scan_hr_scanned_blocks; |
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
146 |
WorkerDataArray<size_t>* _opt_scan_hr_claimed_chunks; |
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
147 |
WorkerDataArray<size_t>* _opt_scan_hr_scanned_opt_refs; |
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
148 |
WorkerDataArray<size_t>* _opt_scan_hr_used_memory; |
54465
c4f16445675a
8218668: Clean up evacuation of optional collection set
tschatzl
parents:
53984
diff
changeset
|
149 |
|
53846
fe95464806a7
8219096: Merge print_termination_stats code with current logging
tschatzl
parents:
53818
diff
changeset
|
150 |
WorkerDataArray<size_t>* _obj_copy_lab_waste; |
fe95464806a7
8219096: Merge print_termination_stats code with current logging
tschatzl
parents:
53818
diff
changeset
|
151 |
WorkerDataArray<size_t>* _obj_copy_lab_undo_waste; |
fe95464806a7
8219096: Merge print_termination_stats code with current logging
tschatzl
parents:
53818
diff
changeset
|
152 |
|
54465
c4f16445675a
8218668: Clean up evacuation of optional collection set
tschatzl
parents:
53984
diff
changeset
|
153 |
WorkerDataArray<size_t>* _opt_obj_copy_lab_waste; |
c4f16445675a
8218668: Clean up evacuation of optional collection set
tschatzl
parents:
53984
diff
changeset
|
154 |
WorkerDataArray<size_t>* _opt_obj_copy_lab_undo_waste; |
52897
495c05ee2a9a
8213890: Implementation of JEP 344: Abortable Mixed Collections for G1
sjohanss
parents:
51877
diff
changeset
|
155 |
|
29680
e5203ed6d805
8074037: Refactor the G1GCPhaseTime logging to make it easier to add new phases
brutisso
parents:
28379
diff
changeset
|
156 |
WorkerDataArray<size_t>* _termination_attempts; |
46571
c70b36f0730d
8178148: Log more detailed information about scan rs phase
tschatzl
parents:
46330
diff
changeset
|
157 |
|
54465
c4f16445675a
8218668: Clean up evacuation of optional collection set
tschatzl
parents:
53984
diff
changeset
|
158 |
WorkerDataArray<size_t>* _opt_termination_attempts; |
c4f16445675a
8218668: Clean up evacuation of optional collection set
tschatzl
parents:
53984
diff
changeset
|
159 |
|
29680
e5203ed6d805
8074037: Refactor the G1GCPhaseTime logging to make it easier to add new phases
brutisso
parents:
28379
diff
changeset
|
160 |
WorkerDataArray<size_t>* _redirtied_cards; |
13288
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
161 |
|
54465
c4f16445675a
8218668: Clean up evacuation of optional collection set
tschatzl
parents:
53984
diff
changeset
|
162 |
double _cur_collection_initial_evac_time_ms; |
52897
495c05ee2a9a
8213890: Implementation of JEP 344: Abortable Mixed Collections for G1
sjohanss
parents:
51877
diff
changeset
|
163 |
double _cur_optional_evac_ms; |
13288
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
164 |
double _cur_collection_code_root_fixup_time_ms; |
23451
ed2b8bb28fed
8035406: Improve data structure for Code Cache remembered sets
tschatzl
parents:
19339
diff
changeset
|
165 |
double _cur_strong_code_root_purge_time_ms; |
13288
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
166 |
|
23455
e541bff96524
8035654: Add times for evacuation failure handling in "Other" time
tschatzl
parents:
23454
diff
changeset
|
167 |
double _cur_evac_fail_recalc_used; |
e541bff96524
8035654: Add times for evacuation failure handling in "Other" time
tschatzl
parents:
23454
diff
changeset
|
168 |
double _cur_evac_fail_remove_self_forwards; |
e541bff96524
8035654: Add times for evacuation failure handling in "Other" time
tschatzl
parents:
23454
diff
changeset
|
169 |
|
53536
482109fae02b
8213229: Investigate treating StringTable as weak in young collections
tschatzl
parents:
53244
diff
changeset
|
170 |
double _cur_string_deduplication_time_ms; |
23472 | 171 |
|
55510
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
172 |
double _cur_merge_heap_roots_time_ms; |
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
173 |
double _cur_optional_merge_heap_roots_time_ms; |
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
174 |
|
55722
5ee183a90e65
8227084: Add timing information for merge heap root preparation
tschatzl
parents:
55510
diff
changeset
|
175 |
double _cur_prepare_merge_heap_roots_time_ms; |
5ee183a90e65
8227084: Add timing information for merge heap root preparation
tschatzl
parents:
55510
diff
changeset
|
176 |
double _cur_optional_prepare_merge_heap_roots_time_ms; |
5ee183a90e65
8227084: Add timing information for merge heap root preparation
tschatzl
parents:
55510
diff
changeset
|
177 |
|
46330
40e2718fac10
8155094: Add logging for long lasting methods found in JDK-8152948
tschatzl
parents:
42650
diff
changeset
|
178 |
double _cur_prepare_tlab_time_ms; |
40e2718fac10
8155094: Add logging for long lasting methods found in JDK-8152948
tschatzl
parents:
42650
diff
changeset
|
179 |
double _cur_resize_tlab_time_ms; |
40e2718fac10
8155094: Add logging for long lasting methods found in JDK-8152948
tschatzl
parents:
42650
diff
changeset
|
180 |
|
40e2718fac10
8155094: Add logging for long lasting methods found in JDK-8152948
tschatzl
parents:
42650
diff
changeset
|
181 |
double _cur_derived_pointer_table_update_time_ms; |
40e2718fac10
8155094: Add logging for long lasting methods found in JDK-8152948
tschatzl
parents:
42650
diff
changeset
|
182 |
|
13288
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
183 |
double _cur_clear_ct_time_ms; |
33577 | 184 |
double _cur_expand_heap_time_ms; |
13288
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
185 |
double _cur_ref_proc_time_ms; |
49810
b5d5e53232ce
8201596: java.lang.ref.Reference processing total time logging broken
tschatzl
parents:
47216
diff
changeset
|
186 |
|
13288
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
187 |
double _cur_collection_start_sec; |
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
188 |
double _root_region_scan_wait_time_ms; |
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
189 |
|
34612
ed475e8089ef
8144145: G1GCPhaseTimes should allow externally accounted time
ehelin
parents:
33739
diff
changeset
|
190 |
double _external_accounted_time_ms; |
ed475e8089ef
8144145: G1GCPhaseTimes should allow externally accounted time
ehelin
parents:
33739
diff
changeset
|
191 |
|
55510
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
192 |
double _recorded_prepare_heap_roots_time_ms; |
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
193 |
|
42048
c1f066b53dd7
8160055: Misplaced call to ClassLoaderDataGraph::clear_claimed_marks during initial mark
jprovino
parents:
39979
diff
changeset
|
194 |
double _recorded_clear_claimed_marks_time_ms; |
c1f066b53dd7
8160055: Misplaced call to ClassLoaderDataGraph::clear_claimed_marks during initial mark
jprovino
parents:
39979
diff
changeset
|
195 |
|
13288
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
196 |
double _recorded_young_cset_choice_time_ms; |
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
197 |
double _recorded_non_young_cset_choice_time_ms; |
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
198 |
|
23454
13a3b426f64d
8035398: Add card redirty time in "Other" time in G1
tschatzl
parents:
23451
diff
changeset
|
199 |
double _recorded_redirty_logged_cards_time_ms; |
13a3b426f64d
8035398: Add card redirty time in "Other" time in G1
tschatzl
parents:
23451
diff
changeset
|
200 |
|
36367
313c87c050f7
8076463: Add logging for the preserve CM referents task
tschatzl
parents:
35907
diff
changeset
|
201 |
double _recorded_preserve_cm_referents_time_ms; |
313c87c050f7
8076463: Add logging for the preserve CM referents task
tschatzl
parents:
35907
diff
changeset
|
202 |
|
36368
569d6e8072a9
8150630: Add logging for ParScanThreadState merge phase
tschatzl
parents:
36367
diff
changeset
|
203 |
double _recorded_merge_pss_time_ms; |
569d6e8072a9
8150630: Add logging for ParScanThreadState merge phase
tschatzl
parents:
36367
diff
changeset
|
204 |
|
46330
40e2718fac10
8155094: Add logging for long lasting methods found in JDK-8152948
tschatzl
parents:
42650
diff
changeset
|
205 |
double _recorded_start_new_cset_time_ms; |
40e2718fac10
8155094: Add logging for long lasting methods found in JDK-8152948
tschatzl
parents:
42650
diff
changeset
|
206 |
|
39979 | 207 |
double _recorded_total_free_cset_time_ms; |
208 |
||
209 |
double _recorded_serial_free_cset_time_ms; |
|
13288
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
210 |
|
54843
25c329958c70
8200545: Improve filter for enqueued deferred cards
tschatzl
parents:
54713
diff
changeset
|
211 |
double _cur_region_register_time; |
25c329958c70
8200545: Improve filter for enqueued deferred cards
tschatzl
parents:
54713
diff
changeset
|
212 |
|
25889
221296ac4359
8027959: Early reclamation of large objects in G1
tschatzl
parents:
25492
diff
changeset
|
213 |
double _cur_fast_reclaim_humongous_time_ms; |
221296ac4359
8027959: Early reclamation of large objects in G1
tschatzl
parents:
25492
diff
changeset
|
214 |
size_t _cur_fast_reclaim_humongous_total; |
221296ac4359
8027959: Early reclamation of large objects in G1
tschatzl
parents:
25492
diff
changeset
|
215 |
size_t _cur_fast_reclaim_humongous_candidates; |
221296ac4359
8027959: Early reclamation of large objects in G1
tschatzl
parents:
25492
diff
changeset
|
216 |
size_t _cur_fast_reclaim_humongous_reclaimed; |
221296ac4359
8027959: Early reclamation of large objects in G1
tschatzl
parents:
25492
diff
changeset
|
217 |
|
13516
f7adc27fb367
7178363: G1: Remove the serial code for PrintGCDetails and make it a special case of the parallel code
brutisso
parents:
13289
diff
changeset
|
218 |
double _cur_verify_before_time_ms; |
f7adc27fb367
7178363: G1: Remove the serial code for PrintGCDetails and make it a special case of the parallel code
brutisso
parents:
13289
diff
changeset
|
219 |
double _cur_verify_after_time_ms; |
f7adc27fb367
7178363: G1: Remove the serial code for PrintGCDetails and make it a special case of the parallel code
brutisso
parents:
13289
diff
changeset
|
220 |
|
46795
623a5e42deb6
8173335: Improve logging for j.l.ref.reference processing
sangheki
parents:
46778
diff
changeset
|
221 |
ReferenceProcessorPhaseTimes _ref_phase_times; |
51546
b9f6a4427da9
8072498: Multi-thread JNI weak reference processing
kbarrett
parents:
50438
diff
changeset
|
222 |
WeakProcessorPhaseTimes _weak_phase_times; |
46795
623a5e42deb6
8173335: Improve logging for j.l.ref.reference processing
sangheki
parents:
46778
diff
changeset
|
223 |
|
37214
bc4e0e0995e6
8152952: Allow G1 phase logging to use individual number of threads
brutisso
parents:
36374
diff
changeset
|
224 |
double worker_time(GCParPhases phase, uint worker); |
36374 | 225 |
void note_gc_end(); |
42545
af9f4bf4d6d8
8168904: Initialize and reset G1 phase times to zero
ehelin
parents:
42048
diff
changeset
|
226 |
void reset(); |
13288
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
227 |
|
36374 | 228 |
template <class T> |
42557 | 229 |
void details(T* phase, const char* indent) const; |
230 |
||
231 |
void log_phase(WorkerDataArray<double>* phase, uint indent, outputStream* out, bool print_sum) const; |
|
53536
482109fae02b
8213229: Investigate treating StringTable as weak in young collections
tschatzl
parents:
53244
diff
changeset
|
232 |
void debug_phase(WorkerDataArray<double>* phase, uint extra_indent = 0) const; |
42557 | 233 |
void trace_phase(WorkerDataArray<double>* phase, bool print_sum = true) const; |
234 |
||
235 |
void info_time(const char* name, double value) const; |
|
236 |
void debug_time(const char* name, double value) const; |
|
46795
623a5e42deb6
8173335: Improve logging for j.l.ref.reference processing
sangheki
parents:
46778
diff
changeset
|
237 |
// This will print logs for both 'gc+phases' and 'gc+phases+ref'. |
623a5e42deb6
8173335: Improve logging for j.l.ref.reference processing
sangheki
parents:
46778
diff
changeset
|
238 |
void debug_time_for_reference(const char* name, double value) const; |
42557 | 239 |
void trace_time(const char* name, double value) const; |
240 |
void trace_count(const char* name, size_t value) const; |
|
241 |
||
242 |
double print_pre_evacuate_collection_set() const; |
|
55510
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
243 |
double print_merge_heap_roots_time() const; |
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
244 |
double print_evacuate_initial_collection_set() const; |
52897
495c05ee2a9a
8213890: Implementation of JEP 344: Abortable Mixed Collections for G1
sjohanss
parents:
51877
diff
changeset
|
245 |
double print_evacuate_optional_collection_set() const; |
42557 | 246 |
double print_post_evacuate_collection_set() const; |
247 |
void print_other(double accounted_ms) const; |
|
33738
1708291bd3d7
8140508: Add utility method for logging phases to G1CollectorPolicy
ehelin
parents:
33577
diff
changeset
|
248 |
|
13288
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
249 |
public: |
46795
623a5e42deb6
8173335: Improve logging for j.l.ref.reference processing
sangheki
parents:
46778
diff
changeset
|
250 |
G1GCPhaseTimes(STWGCTimer* gc_timer, uint max_gc_threads); |
37214
bc4e0e0995e6
8152952: Allow G1 phase logging to use individual number of threads
brutisso
parents:
36374
diff
changeset
|
251 |
void note_gc_start(); |
35907
57bdb6243428
8148734: G1: Make G1GCPhaseTimes keep track of the start GC time
brutisso
parents:
35163
diff
changeset
|
252 |
void print(); |
51877
5f931e3e7a63
8196341: Add JFR events for parallel phases of G1
lkorinth
parents:
51546
diff
changeset
|
253 |
static const char* phase_name(GCParPhases phase); |
13288
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
254 |
|
29680
e5203ed6d805
8074037: Refactor the G1GCPhaseTime logging to make it easier to add new phases
brutisso
parents:
28379
diff
changeset
|
255 |
// record the time a phase took in seconds |
e5203ed6d805
8074037: Refactor the G1GCPhaseTime logging to make it easier to add new phases
brutisso
parents:
28379
diff
changeset
|
256 |
void record_time_secs(GCParPhases phase, uint worker_i, double secs); |
13288
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
257 |
|
29680
e5203ed6d805
8074037: Refactor the G1GCPhaseTime logging to make it easier to add new phases
brutisso
parents:
28379
diff
changeset
|
258 |
// add a number of seconds to a phase |
e5203ed6d805
8074037: Refactor the G1GCPhaseTime logging to make it easier to add new phases
brutisso
parents:
28379
diff
changeset
|
259 |
void add_time_secs(GCParPhases phase, uint worker_i, double secs); |
13288
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
260 |
|
52897
495c05ee2a9a
8213890: Implementation of JEP 344: Abortable Mixed Collections for G1
sjohanss
parents:
51877
diff
changeset
|
261 |
void record_or_add_time_secs(GCParPhases phase, uint worker_i, double secs); |
49911
358be4680d12
6672778: G1 should trim task queues more aggressively during evacuation pauses
tschatzl
parents:
49810
diff
changeset
|
262 |
|
54465
c4f16445675a
8218668: Clean up evacuation of optional collection set
tschatzl
parents:
53984
diff
changeset
|
263 |
double get_time_secs(GCParPhases phase, uint worker_i); |
c4f16445675a
8218668: Clean up evacuation of optional collection set
tschatzl
parents:
53984
diff
changeset
|
264 |
|
46571
c70b36f0730d
8178148: Log more detailed information about scan rs phase
tschatzl
parents:
46330
diff
changeset
|
265 |
void record_thread_work_item(GCParPhases phase, uint worker_i, size_t count, uint index = 0); |
13288
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
266 |
|
52897
495c05ee2a9a
8213890: Implementation of JEP 344: Abortable Mixed Collections for G1
sjohanss
parents:
51877
diff
changeset
|
267 |
void record_or_add_thread_work_item(GCParPhases phase, uint worker_i, size_t count, uint index = 0); |
495c05ee2a9a
8213890: Implementation of JEP 344: Abortable Mixed Collections for G1
sjohanss
parents:
51877
diff
changeset
|
268 |
|
54465
c4f16445675a
8218668: Clean up evacuation of optional collection set
tschatzl
parents:
53984
diff
changeset
|
269 |
size_t get_thread_work_item(GCParPhases phase, uint worker_i, uint index = 0); |
c4f16445675a
8218668: Clean up evacuation of optional collection set
tschatzl
parents:
53984
diff
changeset
|
270 |
|
29680
e5203ed6d805
8074037: Refactor the G1GCPhaseTime logging to make it easier to add new phases
brutisso
parents:
28379
diff
changeset
|
271 |
// return the average time for a phase in milliseconds |
e5203ed6d805
8074037: Refactor the G1GCPhaseTime logging to make it easier to add new phases
brutisso
parents:
28379
diff
changeset
|
272 |
double average_time_ms(GCParPhases phase); |
13288
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
273 |
|
46571
c70b36f0730d
8178148: Log more detailed information about scan rs phase
tschatzl
parents:
46330
diff
changeset
|
274 |
size_t sum_thread_work_items(GCParPhases phase, uint index = 0); |
13516
f7adc27fb367
7178363: G1: Remove the serial code for PrintGCDetails and make it a special case of the parallel code
brutisso
parents:
13289
diff
changeset
|
275 |
|
29680
e5203ed6d805
8074037: Refactor the G1GCPhaseTime logging to make it easier to add new phases
brutisso
parents:
28379
diff
changeset
|
276 |
public: |
13288
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
277 |
|
46330
40e2718fac10
8155094: Add logging for long lasting methods found in JDK-8152948
tschatzl
parents:
42650
diff
changeset
|
278 |
void record_prepare_tlab_time_ms(double ms) { |
40e2718fac10
8155094: Add logging for long lasting methods found in JDK-8152948
tschatzl
parents:
42650
diff
changeset
|
279 |
_cur_prepare_tlab_time_ms = ms; |
40e2718fac10
8155094: Add logging for long lasting methods found in JDK-8152948
tschatzl
parents:
42650
diff
changeset
|
280 |
} |
40e2718fac10
8155094: Add logging for long lasting methods found in JDK-8152948
tschatzl
parents:
42650
diff
changeset
|
281 |
|
40e2718fac10
8155094: Add logging for long lasting methods found in JDK-8152948
tschatzl
parents:
42650
diff
changeset
|
282 |
void record_resize_tlab_time_ms(double ms) { |
40e2718fac10
8155094: Add logging for long lasting methods found in JDK-8152948
tschatzl
parents:
42650
diff
changeset
|
283 |
_cur_resize_tlab_time_ms = ms; |
40e2718fac10
8155094: Add logging for long lasting methods found in JDK-8152948
tschatzl
parents:
42650
diff
changeset
|
284 |
} |
40e2718fac10
8155094: Add logging for long lasting methods found in JDK-8152948
tschatzl
parents:
42650
diff
changeset
|
285 |
|
40e2718fac10
8155094: Add logging for long lasting methods found in JDK-8152948
tschatzl
parents:
42650
diff
changeset
|
286 |
void record_derived_pointer_table_update_time(double ms) { |
40e2718fac10
8155094: Add logging for long lasting methods found in JDK-8152948
tschatzl
parents:
42650
diff
changeset
|
287 |
_cur_derived_pointer_table_update_time_ms = ms; |
40e2718fac10
8155094: Add logging for long lasting methods found in JDK-8152948
tschatzl
parents:
42650
diff
changeset
|
288 |
} |
40e2718fac10
8155094: Add logging for long lasting methods found in JDK-8152948
tschatzl
parents:
42650
diff
changeset
|
289 |
|
13288
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
290 |
void record_clear_ct_time(double ms) { |
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
291 |
_cur_clear_ct_time_ms = ms; |
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
292 |
} |
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
293 |
|
33577 | 294 |
void record_expand_heap_time(double ms) { |
295 |
_cur_expand_heap_time_ms = ms; |
|
296 |
} |
|
297 |
||
54465
c4f16445675a
8218668: Clean up evacuation of optional collection set
tschatzl
parents:
53984
diff
changeset
|
298 |
void record_initial_evac_time(double ms) { |
c4f16445675a
8218668: Clean up evacuation of optional collection set
tschatzl
parents:
53984
diff
changeset
|
299 |
_cur_collection_initial_evac_time_ms = ms; |
13288
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
300 |
} |
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
301 |
|
54465
c4f16445675a
8218668: Clean up evacuation of optional collection set
tschatzl
parents:
53984
diff
changeset
|
302 |
void record_or_add_optional_evac_time(double ms) { |
c4f16445675a
8218668: Clean up evacuation of optional collection set
tschatzl
parents:
53984
diff
changeset
|
303 |
_cur_optional_evac_ms += ms; |
52897
495c05ee2a9a
8213890: Implementation of JEP 344: Abortable Mixed Collections for G1
sjohanss
parents:
51877
diff
changeset
|
304 |
} |
495c05ee2a9a
8213890: Implementation of JEP 344: Abortable Mixed Collections for G1
sjohanss
parents:
51877
diff
changeset
|
305 |
|
54465
c4f16445675a
8218668: Clean up evacuation of optional collection set
tschatzl
parents:
53984
diff
changeset
|
306 |
void record_or_add_code_root_fixup_time(double ms) { |
c4f16445675a
8218668: Clean up evacuation of optional collection set
tschatzl
parents:
53984
diff
changeset
|
307 |
_cur_collection_code_root_fixup_time_ms += ms; |
13288
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
308 |
} |
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
309 |
|
23451
ed2b8bb28fed
8035406: Improve data structure for Code Cache remembered sets
tschatzl
parents:
19339
diff
changeset
|
310 |
void record_strong_code_root_purge_time(double ms) { |
ed2b8bb28fed
8035406: Improve data structure for Code Cache remembered sets
tschatzl
parents:
19339
diff
changeset
|
311 |
_cur_strong_code_root_purge_time_ms = ms; |
ed2b8bb28fed
8035406: Improve data structure for Code Cache remembered sets
tschatzl
parents:
19339
diff
changeset
|
312 |
} |
ed2b8bb28fed
8035406: Improve data structure for Code Cache remembered sets
tschatzl
parents:
19339
diff
changeset
|
313 |
|
55510
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
314 |
void record_merge_heap_roots_time(double ms) { |
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
315 |
_cur_merge_heap_roots_time_ms += ms; |
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
316 |
} |
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
317 |
|
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
318 |
void record_or_add_optional_merge_heap_roots_time(double ms) { |
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
319 |
_cur_optional_merge_heap_roots_time_ms += ms; |
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
320 |
} |
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
321 |
|
55722
5ee183a90e65
8227084: Add timing information for merge heap root preparation
tschatzl
parents:
55510
diff
changeset
|
322 |
void record_prepare_merge_heap_roots_time(double ms) { |
5ee183a90e65
8227084: Add timing information for merge heap root preparation
tschatzl
parents:
55510
diff
changeset
|
323 |
_cur_prepare_merge_heap_roots_time_ms += ms; |
5ee183a90e65
8227084: Add timing information for merge heap root preparation
tschatzl
parents:
55510
diff
changeset
|
324 |
} |
5ee183a90e65
8227084: Add timing information for merge heap root preparation
tschatzl
parents:
55510
diff
changeset
|
325 |
|
5ee183a90e65
8227084: Add timing information for merge heap root preparation
tschatzl
parents:
55510
diff
changeset
|
326 |
void record_or_add_optional_prepare_merge_heap_roots_time(double ms) { |
5ee183a90e65
8227084: Add timing information for merge heap root preparation
tschatzl
parents:
55510
diff
changeset
|
327 |
_cur_optional_prepare_merge_heap_roots_time_ms += ms; |
5ee183a90e65
8227084: Add timing information for merge heap root preparation
tschatzl
parents:
55510
diff
changeset
|
328 |
} |
5ee183a90e65
8227084: Add timing information for merge heap root preparation
tschatzl
parents:
55510
diff
changeset
|
329 |
|
23455
e541bff96524
8035654: Add times for evacuation failure handling in "Other" time
tschatzl
parents:
23454
diff
changeset
|
330 |
void record_evac_fail_recalc_used_time(double ms) { |
e541bff96524
8035654: Add times for evacuation failure handling in "Other" time
tschatzl
parents:
23454
diff
changeset
|
331 |
_cur_evac_fail_recalc_used = ms; |
e541bff96524
8035654: Add times for evacuation failure handling in "Other" time
tschatzl
parents:
23454
diff
changeset
|
332 |
} |
e541bff96524
8035654: Add times for evacuation failure handling in "Other" time
tschatzl
parents:
23454
diff
changeset
|
333 |
|
e541bff96524
8035654: Add times for evacuation failure handling in "Other" time
tschatzl
parents:
23454
diff
changeset
|
334 |
void record_evac_fail_remove_self_forwards(double ms) { |
e541bff96524
8035654: Add times for evacuation failure handling in "Other" time
tschatzl
parents:
23454
diff
changeset
|
335 |
_cur_evac_fail_remove_self_forwards = ms; |
e541bff96524
8035654: Add times for evacuation failure handling in "Other" time
tschatzl
parents:
23454
diff
changeset
|
336 |
} |
e541bff96524
8035654: Add times for evacuation failure handling in "Other" time
tschatzl
parents:
23454
diff
changeset
|
337 |
|
53536
482109fae02b
8213229: Investigate treating StringTable as weak in young collections
tschatzl
parents:
53244
diff
changeset
|
338 |
void record_string_deduplication_time(double ms) { |
482109fae02b
8213229: Investigate treating StringTable as weak in young collections
tschatzl
parents:
53244
diff
changeset
|
339 |
_cur_string_deduplication_time_ms = ms; |
23472 | 340 |
} |
341 |
||
13288
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
342 |
void record_ref_proc_time(double ms) { |
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
343 |
_cur_ref_proc_time_ms = ms; |
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
344 |
} |
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
345 |
|
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
346 |
void record_root_region_scan_wait_time(double time_ms) { |
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
347 |
_root_region_scan_wait_time_ms = time_ms; |
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
348 |
} |
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
349 |
|
39979 | 350 |
void record_total_free_cset_time_ms(double time_ms) { |
351 |
_recorded_total_free_cset_time_ms = time_ms; |
|
13288
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
352 |
} |
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
353 |
|
39979 | 354 |
void record_serial_free_cset_time_ms(double time_ms) { |
355 |
_recorded_serial_free_cset_time_ms = time_ms; |
|
13288
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
356 |
} |
13516
f7adc27fb367
7178363: G1: Remove the serial code for PrintGCDetails and make it a special case of the parallel code
brutisso
parents:
13289
diff
changeset
|
357 |
|
54843
25c329958c70
8200545: Improve filter for enqueued deferred cards
tschatzl
parents:
54713
diff
changeset
|
358 |
void record_register_regions(double time_ms, size_t total, size_t candidates) { |
25c329958c70
8200545: Improve filter for enqueued deferred cards
tschatzl
parents:
54713
diff
changeset
|
359 |
_cur_region_register_time = time_ms; |
25889
221296ac4359
8027959: Early reclamation of large objects in G1
tschatzl
parents:
25492
diff
changeset
|
360 |
_cur_fast_reclaim_humongous_total = total; |
221296ac4359
8027959: Early reclamation of large objects in G1
tschatzl
parents:
25492
diff
changeset
|
361 |
_cur_fast_reclaim_humongous_candidates = candidates; |
221296ac4359
8027959: Early reclamation of large objects in G1
tschatzl
parents:
25492
diff
changeset
|
362 |
} |
221296ac4359
8027959: Early reclamation of large objects in G1
tschatzl
parents:
25492
diff
changeset
|
363 |
|
221296ac4359
8027959: Early reclamation of large objects in G1
tschatzl
parents:
25492
diff
changeset
|
364 |
void record_fast_reclaim_humongous_time_ms(double value, size_t reclaimed) { |
221296ac4359
8027959: Early reclamation of large objects in G1
tschatzl
parents:
25492
diff
changeset
|
365 |
_cur_fast_reclaim_humongous_time_ms = value; |
221296ac4359
8027959: Early reclamation of large objects in G1
tschatzl
parents:
25492
diff
changeset
|
366 |
_cur_fast_reclaim_humongous_reclaimed = reclaimed; |
221296ac4359
8027959: Early reclamation of large objects in G1
tschatzl
parents:
25492
diff
changeset
|
367 |
} |
221296ac4359
8027959: Early reclamation of large objects in G1
tschatzl
parents:
25492
diff
changeset
|
368 |
|
13516
f7adc27fb367
7178363: G1: Remove the serial code for PrintGCDetails and make it a special case of the parallel code
brutisso
parents:
13289
diff
changeset
|
369 |
void record_young_cset_choice_time_ms(double time_ms) { |
f7adc27fb367
7178363: G1: Remove the serial code for PrintGCDetails and make it a special case of the parallel code
brutisso
parents:
13289
diff
changeset
|
370 |
_recorded_young_cset_choice_time_ms = time_ms; |
f7adc27fb367
7178363: G1: Remove the serial code for PrintGCDetails and make it a special case of the parallel code
brutisso
parents:
13289
diff
changeset
|
371 |
} |
f7adc27fb367
7178363: G1: Remove the serial code for PrintGCDetails and make it a special case of the parallel code
brutisso
parents:
13289
diff
changeset
|
372 |
|
f7adc27fb367
7178363: G1: Remove the serial code for PrintGCDetails and make it a special case of the parallel code
brutisso
parents:
13289
diff
changeset
|
373 |
void record_non_young_cset_choice_time_ms(double time_ms) { |
f7adc27fb367
7178363: G1: Remove the serial code for PrintGCDetails and make it a special case of the parallel code
brutisso
parents:
13289
diff
changeset
|
374 |
_recorded_non_young_cset_choice_time_ms = time_ms; |
f7adc27fb367
7178363: G1: Remove the serial code for PrintGCDetails and make it a special case of the parallel code
brutisso
parents:
13289
diff
changeset
|
375 |
} |
f7adc27fb367
7178363: G1: Remove the serial code for PrintGCDetails and make it a special case of the parallel code
brutisso
parents:
13289
diff
changeset
|
376 |
|
23454
13a3b426f64d
8035398: Add card redirty time in "Other" time in G1
tschatzl
parents:
23451
diff
changeset
|
377 |
void record_redirty_logged_cards_time_ms(double time_ms) { |
13a3b426f64d
8035398: Add card redirty time in "Other" time in G1
tschatzl
parents:
23451
diff
changeset
|
378 |
_recorded_redirty_logged_cards_time_ms = time_ms; |
13a3b426f64d
8035398: Add card redirty time in "Other" time in G1
tschatzl
parents:
23451
diff
changeset
|
379 |
} |
13a3b426f64d
8035398: Add card redirty time in "Other" time in G1
tschatzl
parents:
23451
diff
changeset
|
380 |
|
36367
313c87c050f7
8076463: Add logging for the preserve CM referents task
tschatzl
parents:
35907
diff
changeset
|
381 |
void record_preserve_cm_referents_time_ms(double time_ms) { |
313c87c050f7
8076463: Add logging for the preserve CM referents task
tschatzl
parents:
35907
diff
changeset
|
382 |
_recorded_preserve_cm_referents_time_ms = time_ms; |
313c87c050f7
8076463: Add logging for the preserve CM referents task
tschatzl
parents:
35907
diff
changeset
|
383 |
} |
313c87c050f7
8076463: Add logging for the preserve CM referents task
tschatzl
parents:
35907
diff
changeset
|
384 |
|
36368
569d6e8072a9
8150630: Add logging for ParScanThreadState merge phase
tschatzl
parents:
36367
diff
changeset
|
385 |
void record_merge_pss_time_ms(double time_ms) { |
569d6e8072a9
8150630: Add logging for ParScanThreadState merge phase
tschatzl
parents:
36367
diff
changeset
|
386 |
_recorded_merge_pss_time_ms = time_ms; |
569d6e8072a9
8150630: Add logging for ParScanThreadState merge phase
tschatzl
parents:
36367
diff
changeset
|
387 |
} |
569d6e8072a9
8150630: Add logging for ParScanThreadState merge phase
tschatzl
parents:
36367
diff
changeset
|
388 |
|
46330
40e2718fac10
8155094: Add logging for long lasting methods found in JDK-8152948
tschatzl
parents:
42650
diff
changeset
|
389 |
void record_start_new_cset_time_ms(double time_ms) { |
40e2718fac10
8155094: Add logging for long lasting methods found in JDK-8152948
tschatzl
parents:
42650
diff
changeset
|
390 |
_recorded_start_new_cset_time_ms = time_ms; |
40e2718fac10
8155094: Add logging for long lasting methods found in JDK-8152948
tschatzl
parents:
42650
diff
changeset
|
391 |
} |
40e2718fac10
8155094: Add logging for long lasting methods found in JDK-8152948
tschatzl
parents:
42650
diff
changeset
|
392 |
|
13516
f7adc27fb367
7178363: G1: Remove the serial code for PrintGCDetails and make it a special case of the parallel code
brutisso
parents:
13289
diff
changeset
|
393 |
void record_cur_collection_start_sec(double time_ms) { |
f7adc27fb367
7178363: G1: Remove the serial code for PrintGCDetails and make it a special case of the parallel code
brutisso
parents:
13289
diff
changeset
|
394 |
_cur_collection_start_sec = time_ms; |
f7adc27fb367
7178363: G1: Remove the serial code for PrintGCDetails and make it a special case of the parallel code
brutisso
parents:
13289
diff
changeset
|
395 |
} |
f7adc27fb367
7178363: G1: Remove the serial code for PrintGCDetails and make it a special case of the parallel code
brutisso
parents:
13289
diff
changeset
|
396 |
|
f7adc27fb367
7178363: G1: Remove the serial code for PrintGCDetails and make it a special case of the parallel code
brutisso
parents:
13289
diff
changeset
|
397 |
void record_verify_before_time_ms(double time_ms) { |
f7adc27fb367
7178363: G1: Remove the serial code for PrintGCDetails and make it a special case of the parallel code
brutisso
parents:
13289
diff
changeset
|
398 |
_cur_verify_before_time_ms = time_ms; |
f7adc27fb367
7178363: G1: Remove the serial code for PrintGCDetails and make it a special case of the parallel code
brutisso
parents:
13289
diff
changeset
|
399 |
} |
f7adc27fb367
7178363: G1: Remove the serial code for PrintGCDetails and make it a special case of the parallel code
brutisso
parents:
13289
diff
changeset
|
400 |
|
f7adc27fb367
7178363: G1: Remove the serial code for PrintGCDetails and make it a special case of the parallel code
brutisso
parents:
13289
diff
changeset
|
401 |
void record_verify_after_time_ms(double time_ms) { |
f7adc27fb367
7178363: G1: Remove the serial code for PrintGCDetails and make it a special case of the parallel code
brutisso
parents:
13289
diff
changeset
|
402 |
_cur_verify_after_time_ms = time_ms; |
f7adc27fb367
7178363: G1: Remove the serial code for PrintGCDetails and make it a special case of the parallel code
brutisso
parents:
13289
diff
changeset
|
403 |
} |
f7adc27fb367
7178363: G1: Remove the serial code for PrintGCDetails and make it a special case of the parallel code
brutisso
parents:
13289
diff
changeset
|
404 |
|
34612
ed475e8089ef
8144145: G1GCPhaseTimes should allow externally accounted time
ehelin
parents:
33739
diff
changeset
|
405 |
void inc_external_accounted_time_ms(double time_ms) { |
ed475e8089ef
8144145: G1GCPhaseTimes should allow externally accounted time
ehelin
parents:
33739
diff
changeset
|
406 |
_external_accounted_time_ms += time_ms; |
ed475e8089ef
8144145: G1GCPhaseTimes should allow externally accounted time
ehelin
parents:
33739
diff
changeset
|
407 |
} |
ed475e8089ef
8144145: G1GCPhaseTimes should allow externally accounted time
ehelin
parents:
33739
diff
changeset
|
408 |
|
55510
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
409 |
void record_prepare_heap_roots_time_ms(double recorded_prepare_heap_roots_time_ms) { |
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
410 |
_recorded_prepare_heap_roots_time_ms = recorded_prepare_heap_roots_time_ms; |
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
411 |
} |
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
412 |
|
42048
c1f066b53dd7
8160055: Misplaced call to ClassLoaderDataGraph::clear_claimed_marks during initial mark
jprovino
parents:
39979
diff
changeset
|
413 |
void record_clear_claimed_marks_time_ms(double recorded_clear_claimed_marks_time_ms) { |
c1f066b53dd7
8160055: Misplaced call to ClassLoaderDataGraph::clear_claimed_marks during initial mark
jprovino
parents:
39979
diff
changeset
|
414 |
_recorded_clear_claimed_marks_time_ms = recorded_clear_claimed_marks_time_ms; |
c1f066b53dd7
8160055: Misplaced call to ClassLoaderDataGraph::clear_claimed_marks during initial mark
jprovino
parents:
39979
diff
changeset
|
415 |
} |
c1f066b53dd7
8160055: Misplaced call to ClassLoaderDataGraph::clear_claimed_marks during initial mark
jprovino
parents:
39979
diff
changeset
|
416 |
|
13516
f7adc27fb367
7178363: G1: Remove the serial code for PrintGCDetails and make it a special case of the parallel code
brutisso
parents:
13289
diff
changeset
|
417 |
double cur_collection_start_sec() { |
f7adc27fb367
7178363: G1: Remove the serial code for PrintGCDetails and make it a special case of the parallel code
brutisso
parents:
13289
diff
changeset
|
418 |
return _cur_collection_start_sec; |
f7adc27fb367
7178363: G1: Remove the serial code for PrintGCDetails and make it a special case of the parallel code
brutisso
parents:
13289
diff
changeset
|
419 |
} |
f7adc27fb367
7178363: G1: Remove the serial code for PrintGCDetails and make it a special case of the parallel code
brutisso
parents:
13289
diff
changeset
|
420 |
|
f7adc27fb367
7178363: G1: Remove the serial code for PrintGCDetails and make it a special case of the parallel code
brutisso
parents:
13289
diff
changeset
|
421 |
double cur_collection_par_time_ms() { |
54465
c4f16445675a
8218668: Clean up evacuation of optional collection set
tschatzl
parents:
53984
diff
changeset
|
422 |
return _cur_collection_initial_evac_time_ms; |
13516
f7adc27fb367
7178363: G1: Remove the serial code for PrintGCDetails and make it a special case of the parallel code
brutisso
parents:
13289
diff
changeset
|
423 |
} |
f7adc27fb367
7178363: G1: Remove the serial code for PrintGCDetails and make it a special case of the parallel code
brutisso
parents:
13289
diff
changeset
|
424 |
|
f7adc27fb367
7178363: G1: Remove the serial code for PrintGCDetails and make it a special case of the parallel code
brutisso
parents:
13289
diff
changeset
|
425 |
double cur_clear_ct_time_ms() { |
f7adc27fb367
7178363: G1: Remove the serial code for PrintGCDetails and make it a special case of the parallel code
brutisso
parents:
13289
diff
changeset
|
426 |
return _cur_clear_ct_time_ms; |
f7adc27fb367
7178363: G1: Remove the serial code for PrintGCDetails and make it a special case of the parallel code
brutisso
parents:
13289
diff
changeset
|
427 |
} |
f7adc27fb367
7178363: G1: Remove the serial code for PrintGCDetails and make it a special case of the parallel code
brutisso
parents:
13289
diff
changeset
|
428 |
|
33577 | 429 |
double cur_expand_heap_time_ms() { |
430 |
return _cur_expand_heap_time_ms; |
|
431 |
} |
|
432 |
||
13516
f7adc27fb367
7178363: G1: Remove the serial code for PrintGCDetails and make it a special case of the parallel code
brutisso
parents:
13289
diff
changeset
|
433 |
double root_region_scan_wait_time_ms() { |
f7adc27fb367
7178363: G1: Remove the serial code for PrintGCDetails and make it a special case of the parallel code
brutisso
parents:
13289
diff
changeset
|
434 |
return _root_region_scan_wait_time_ms; |
f7adc27fb367
7178363: G1: Remove the serial code for PrintGCDetails and make it a special case of the parallel code
brutisso
parents:
13289
diff
changeset
|
435 |
} |
f7adc27fb367
7178363: G1: Remove the serial code for PrintGCDetails and make it a special case of the parallel code
brutisso
parents:
13289
diff
changeset
|
436 |
|
f7adc27fb367
7178363: G1: Remove the serial code for PrintGCDetails and make it a special case of the parallel code
brutisso
parents:
13289
diff
changeset
|
437 |
double young_cset_choice_time_ms() { |
f7adc27fb367
7178363: G1: Remove the serial code for PrintGCDetails and make it a special case of the parallel code
brutisso
parents:
13289
diff
changeset
|
438 |
return _recorded_young_cset_choice_time_ms; |
f7adc27fb367
7178363: G1: Remove the serial code for PrintGCDetails and make it a special case of the parallel code
brutisso
parents:
13289
diff
changeset
|
439 |
} |
f7adc27fb367
7178363: G1: Remove the serial code for PrintGCDetails and make it a special case of the parallel code
brutisso
parents:
13289
diff
changeset
|
440 |
|
39979 | 441 |
double total_free_cset_time_ms() { |
442 |
return _recorded_total_free_cset_time_ms; |
|
13516
f7adc27fb367
7178363: G1: Remove the serial code for PrintGCDetails and make it a special case of the parallel code
brutisso
parents:
13289
diff
changeset
|
443 |
} |
f7adc27fb367
7178363: G1: Remove the serial code for PrintGCDetails and make it a special case of the parallel code
brutisso
parents:
13289
diff
changeset
|
444 |
|
f7adc27fb367
7178363: G1: Remove the serial code for PrintGCDetails and make it a special case of the parallel code
brutisso
parents:
13289
diff
changeset
|
445 |
double non_young_cset_choice_time_ms() { |
f7adc27fb367
7178363: G1: Remove the serial code for PrintGCDetails and make it a special case of the parallel code
brutisso
parents:
13289
diff
changeset
|
446 |
return _recorded_non_young_cset_choice_time_ms; |
f7adc27fb367
7178363: G1: Remove the serial code for PrintGCDetails and make it a special case of the parallel code
brutisso
parents:
13289
diff
changeset
|
447 |
} |
f7adc27fb367
7178363: G1: Remove the serial code for PrintGCDetails and make it a special case of the parallel code
brutisso
parents:
13289
diff
changeset
|
448 |
|
25889
221296ac4359
8027959: Early reclamation of large objects in G1
tschatzl
parents:
25492
diff
changeset
|
449 |
double fast_reclaim_humongous_time_ms() { |
221296ac4359
8027959: Early reclamation of large objects in G1
tschatzl
parents:
25492
diff
changeset
|
450 |
return _cur_fast_reclaim_humongous_time_ms; |
221296ac4359
8027959: Early reclamation of large objects in G1
tschatzl
parents:
25492
diff
changeset
|
451 |
} |
46795
623a5e42deb6
8173335: Improve logging for j.l.ref.reference processing
sangheki
parents:
46778
diff
changeset
|
452 |
|
55510
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
453 |
size_t fast_reclaim_humongous_candidates() const { |
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
454 |
return _cur_fast_reclaim_humongous_candidates; |
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
455 |
} |
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
456 |
|
46795
623a5e42deb6
8173335: Improve logging for j.l.ref.reference processing
sangheki
parents:
46778
diff
changeset
|
457 |
ReferenceProcessorPhaseTimes* ref_phase_times() { return &_ref_phase_times; } |
51546
b9f6a4427da9
8072498: Multi-thread JNI weak reference processing
kbarrett
parents:
50438
diff
changeset
|
458 |
|
b9f6a4427da9
8072498: Multi-thread JNI weak reference processing
kbarrett
parents:
50438
diff
changeset
|
459 |
WeakProcessorPhaseTimes* weak_phase_times() { return &_weak_phase_times; } |
29680
e5203ed6d805
8074037: Refactor the G1GCPhaseTime logging to make it easier to add new phases
brutisso
parents:
28379
diff
changeset
|
460 |
}; |
13516
f7adc27fb367
7178363: G1: Remove the serial code for PrintGCDetails and make it a special case of the parallel code
brutisso
parents:
13289
diff
changeset
|
461 |
|
49911
358be4680d12
6672778: G1 should trim task queues more aggressively during evacuation pauses
tschatzl
parents:
49810
diff
changeset
|
462 |
class G1EvacPhaseWithTrimTimeTracker : public StackObj { |
358be4680d12
6672778: G1 should trim task queues more aggressively during evacuation pauses
tschatzl
parents:
49810
diff
changeset
|
463 |
G1ParScanThreadState* _pss; |
358be4680d12
6672778: G1 should trim task queues more aggressively during evacuation pauses
tschatzl
parents:
49810
diff
changeset
|
464 |
Ticks _start; |
358be4680d12
6672778: G1 should trim task queues more aggressively during evacuation pauses
tschatzl
parents:
49810
diff
changeset
|
465 |
|
358be4680d12
6672778: G1 should trim task queues more aggressively during evacuation pauses
tschatzl
parents:
49810
diff
changeset
|
466 |
Tickspan& _total_time; |
358be4680d12
6672778: G1 should trim task queues more aggressively during evacuation pauses
tschatzl
parents:
49810
diff
changeset
|
467 |
Tickspan& _trim_time; |
50438
66d0ded78cce
8204287: Phase timings not updated correctly after JDK-6672778
sjohanss
parents:
50049
diff
changeset
|
468 |
|
66d0ded78cce
8204287: Phase timings not updated correctly after JDK-6672778
sjohanss
parents:
50049
diff
changeset
|
469 |
bool _stopped; |
49911
358be4680d12
6672778: G1 should trim task queues more aggressively during evacuation pauses
tschatzl
parents:
49810
diff
changeset
|
470 |
public: |
358be4680d12
6672778: G1 should trim task queues more aggressively during evacuation pauses
tschatzl
parents:
49810
diff
changeset
|
471 |
G1EvacPhaseWithTrimTimeTracker(G1ParScanThreadState* pss, Tickspan& total_time, Tickspan& trim_time); |
358be4680d12
6672778: G1 should trim task queues more aggressively during evacuation pauses
tschatzl
parents:
49810
diff
changeset
|
472 |
~G1EvacPhaseWithTrimTimeTracker(); |
50438
66d0ded78cce
8204287: Phase timings not updated correctly after JDK-6672778
sjohanss
parents:
50049
diff
changeset
|
473 |
|
66d0ded78cce
8204287: Phase timings not updated correctly after JDK-6672778
sjohanss
parents:
50049
diff
changeset
|
474 |
void stop(); |
49911
358be4680d12
6672778: G1 should trim task queues more aggressively during evacuation pauses
tschatzl
parents:
49810
diff
changeset
|
475 |
}; |
358be4680d12
6672778: G1 should trim task queues more aggressively during evacuation pauses
tschatzl
parents:
49810
diff
changeset
|
476 |
|
358be4680d12
6672778: G1 should trim task queues more aggressively during evacuation pauses
tschatzl
parents:
49810
diff
changeset
|
477 |
class G1GCParPhaseTimesTracker : public CHeapObj<mtGC> { |
358be4680d12
6672778: G1 should trim task queues more aggressively during evacuation pauses
tschatzl
parents:
49810
diff
changeset
|
478 |
protected: |
358be4680d12
6672778: G1 should trim task queues more aggressively during evacuation pauses
tschatzl
parents:
49810
diff
changeset
|
479 |
Ticks _start_time; |
29680
e5203ed6d805
8074037: Refactor the G1GCPhaseTime logging to make it easier to add new phases
brutisso
parents:
28379
diff
changeset
|
480 |
G1GCPhaseTimes::GCParPhases _phase; |
e5203ed6d805
8074037: Refactor the G1GCPhaseTime logging to make it easier to add new phases
brutisso
parents:
28379
diff
changeset
|
481 |
G1GCPhaseTimes* _phase_times; |
e5203ed6d805
8074037: Refactor the G1GCPhaseTime logging to make it easier to add new phases
brutisso
parents:
28379
diff
changeset
|
482 |
uint _worker_id; |
51877
5f931e3e7a63
8196341: Add JFR events for parallel phases of G1
lkorinth
parents:
51546
diff
changeset
|
483 |
EventGCPhaseParallel _event; |
55510
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
484 |
bool _must_record; |
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
485 |
|
29680
e5203ed6d805
8074037: Refactor the G1GCPhaseTime logging to make it easier to add new phases
brutisso
parents:
28379
diff
changeset
|
486 |
public: |
55510
3e31a8beaae4
8213108: Improve work distribution during remembered set scan
tschatzl
parents:
54843
diff
changeset
|
487 |
G1GCParPhaseTimesTracker(G1GCPhaseTimes* phase_times, G1GCPhaseTimes::GCParPhases phase, uint worker_id, bool must_record = true); |
49911
358be4680d12
6672778: G1 should trim task queues more aggressively during evacuation pauses
tschatzl
parents:
49810
diff
changeset
|
488 |
virtual ~G1GCParPhaseTimesTracker(); |
358be4680d12
6672778: G1 should trim task queues more aggressively during evacuation pauses
tschatzl
parents:
49810
diff
changeset
|
489 |
}; |
358be4680d12
6672778: G1 should trim task queues more aggressively during evacuation pauses
tschatzl
parents:
49810
diff
changeset
|
490 |
|
358be4680d12
6672778: G1 should trim task queues more aggressively during evacuation pauses
tschatzl
parents:
49810
diff
changeset
|
491 |
class G1EvacPhaseTimesTracker : public G1GCParPhaseTimesTracker { |
358be4680d12
6672778: G1 should trim task queues more aggressively during evacuation pauses
tschatzl
parents:
49810
diff
changeset
|
492 |
Tickspan _total_time; |
358be4680d12
6672778: G1 should trim task queues more aggressively during evacuation pauses
tschatzl
parents:
49810
diff
changeset
|
493 |
Tickspan _trim_time; |
358be4680d12
6672778: G1 should trim task queues more aggressively during evacuation pauses
tschatzl
parents:
49810
diff
changeset
|
494 |
|
358be4680d12
6672778: G1 should trim task queues more aggressively during evacuation pauses
tschatzl
parents:
49810
diff
changeset
|
495 |
G1EvacPhaseWithTrimTimeTracker _trim_tracker; |
358be4680d12
6672778: G1 should trim task queues more aggressively during evacuation pauses
tschatzl
parents:
49810
diff
changeset
|
496 |
public: |
358be4680d12
6672778: G1 should trim task queues more aggressively during evacuation pauses
tschatzl
parents:
49810
diff
changeset
|
497 |
G1EvacPhaseTimesTracker(G1GCPhaseTimes* phase_times, G1ParScanThreadState* pss, G1GCPhaseTimes::GCParPhases phase, uint worker_id); |
358be4680d12
6672778: G1 should trim task queues more aggressively during evacuation pauses
tschatzl
parents:
49810
diff
changeset
|
498 |
virtual ~G1EvacPhaseTimesTracker(); |
13288
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
499 |
}; |
331d5b6725f3
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
brutisso
parents:
diff
changeset
|
500 |
|
53244
9807daeb47c4
8216167: Update include guards to reflect correct directories
coleenp
parents:
52897
diff
changeset
|
501 |
#endif // SHARE_GC_G1_G1GCPHASETIMES_HPP |