Mercurial > hg > graal-compiler
annotate src/share/vm/gc_implementation/g1/concurrentG1Refine.hpp @ 17833:bfdf528be8e8
8038498: Fix includes and C inlining after 8035330
Summary: Change 8035330: Remove G1ParScanPartialArrayClosure and G1ParScanHeapEvacClosure broke the debug build on AIX. The method do_oop_partial_array() is added in a header, but requires the inline function par_write_ref() through several inlined calls. In some cpp files, like arguments.cpp, par_write_ref() is not defined as the corresponding inline header and is not included. The AIX debug VM does not start because of the missing symbol. This change solves this by cleaning up include dependencies.
Reviewed-by: tschatzl, stefank
author | tschatzl |
---|---|
date | Fri, 04 Apr 2014 10:43:56 +0200 |
parents | e72f7eecc96d |
children | 8847586c9037 |
rev | line source |
---|---|
342 | 1 /* |
10246
194f52aa2f23
7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
6842
diff
changeset
|
2 * Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved. |
342 | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | |
5 * This code is free software; you can redistribute it and/or modify it | |
6 * under the terms of the GNU General Public License version 2 only, as | |
7 * published by the Free Software Foundation. | |
8 * | |
9 * This code is distributed in the hope that it will be useful, but WITHOUT | |
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
12 * version 2 for more details (a copy is included in the LICENSE file that | |
13 * accompanied this code). | |
14 * | |
15 * You should have received a copy of the GNU General Public License version | |
16 * 2 along with this work; if not, write to the Free Software Foundation, | |
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. | |
18 * | |
1552
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1282
diff
changeset
|
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1282
diff
changeset
|
20 * or visit www.oracle.com if you need additional information or have any |
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1282
diff
changeset
|
21 * questions. |
342 | 22 * |
23 */ | |
24 | |
1972 | 25 #ifndef SHARE_VM_GC_IMPLEMENTATION_G1_CONCURRENTG1REFINE_HPP |
26 #define SHARE_VM_GC_IMPLEMENTATION_G1_CONCURRENTG1REFINE_HPP | |
27 | |
10246
194f52aa2f23
7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
6842
diff
changeset
|
28 #include "gc_implementation/g1/g1HotCardCache.hpp" |
1972 | 29 #include "memory/allocation.hpp" |
30 #include "runtime/thread.hpp" | |
31 #include "utilities/globalDefinitions.hpp" | |
32 | |
342 | 33 // Forward decl |
34 class ConcurrentG1RefineThread; | |
10246
194f52aa2f23
7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
6842
diff
changeset
|
35 class G1CollectedHeap; |
194f52aa2f23
7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
6842
diff
changeset
|
36 class G1HotCardCache; |
342 | 37 class G1RemSet; |
10372
e72f7eecc96d
8013895: G1: G1SummarizeRSetStats output on Linux needs improvemen
tschatzl
parents:
10246
diff
changeset
|
38 class DirtyCardQueue; |
342 | 39 |
6197 | 40 class ConcurrentG1Refine: public CHeapObj<mtGC> { |
794 | 41 ConcurrentG1RefineThread** _threads; |
42 int _n_threads; | |
1111 | 43 int _n_worker_threads; |
44 /* | |
45 * The value of the update buffer queue length falls into one of 3 zones: | |
46 * green, yellow, red. If the value is in [0, green) nothing is | |
47 * done, the buffers are left unprocessed to enable the caching effect of the | |
48 * dirtied cards. In the yellow zone [green, yellow) the concurrent refinement | |
49 * threads are gradually activated. In [yellow, red) all threads are | |
50 * running. If the length becomes red (max queue length) the mutators start | |
51 * processing the buffers. | |
52 * | |
1282 | 53 * There are some interesting cases (when G1UseAdaptiveConcRefinement |
54 * is turned off): | |
1111 | 55 * 1) green = yellow = red = 0. In this case the mutator will process all |
56 * buffers. Except for those that are created by the deferred updates | |
57 * machinery during a collection. | |
58 * 2) green = 0. Means no caching. Can be a good way to minimize the | |
59 * amount of time spent updating rsets during a collection. | |
60 */ | |
61 int _green_zone; | |
62 int _yellow_zone; | |
63 int _red_zone; | |
64 | |
65 int _thread_threshold_step; | |
66 | |
10246
194f52aa2f23
7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
6842
diff
changeset
|
67 // We delay the refinement of 'hot' cards using the hot card cache. |
194f52aa2f23
7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
6842
diff
changeset
|
68 G1HotCardCache _hot_card_cache; |
194f52aa2f23
7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
6842
diff
changeset
|
69 |
1111 | 70 // Reset the threshold step value based of the current zone boundaries. |
71 void reset_threshold_step(); | |
890
6cb8e9df7174
6819077: G1: first GC thread coming late into the GC.
johnc
parents:
889
diff
changeset
|
72 |
342 | 73 public: |
10246
194f52aa2f23
7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
6842
diff
changeset
|
74 ConcurrentG1Refine(G1CollectedHeap* g1h); |
342 | 75 ~ConcurrentG1Refine(); |
76 | |
77 void init(); // Accomplish some initialization that has to wait. | |
794 | 78 void stop(); |
342 | 79 |
1111 | 80 void reinitialize_threads(); |
81 | |
10372
e72f7eecc96d
8013895: G1: G1SummarizeRSetStats output on Linux needs improvemen
tschatzl
parents:
10246
diff
changeset
|
82 // Iterate over all concurrent refinement threads |
794 | 83 void threads_do(ThreadClosure *tc); |
342 | 84 |
10372
e72f7eecc96d
8013895: G1: G1SummarizeRSetStats output on Linux needs improvemen
tschatzl
parents:
10246
diff
changeset
|
85 // Iterate over all worker refinement threads |
e72f7eecc96d
8013895: G1: G1SummarizeRSetStats output on Linux needs improvemen
tschatzl
parents:
10246
diff
changeset
|
86 void worker_threads_do(ThreadClosure * tc); |
e72f7eecc96d
8013895: G1: G1SummarizeRSetStats output on Linux needs improvemen
tschatzl
parents:
10246
diff
changeset
|
87 |
e72f7eecc96d
8013895: G1: G1SummarizeRSetStats output on Linux needs improvemen
tschatzl
parents:
10246
diff
changeset
|
88 // The RS sampling thread |
e72f7eecc96d
8013895: G1: G1SummarizeRSetStats output on Linux needs improvemen
tschatzl
parents:
10246
diff
changeset
|
89 ConcurrentG1RefineThread * sampling_thread() const; |
e72f7eecc96d
8013895: G1: G1SummarizeRSetStats output on Linux needs improvemen
tschatzl
parents:
10246
diff
changeset
|
90 |
1111 | 91 static int thread_num(); |
1019 | 92 |
93 void print_worker_threads_on(outputStream* st) const; | |
1111 | 94 |
95 void set_green_zone(int x) { _green_zone = x; } | |
96 void set_yellow_zone(int x) { _yellow_zone = x; } | |
97 void set_red_zone(int x) { _red_zone = x; } | |
98 | |
99 int green_zone() const { return _green_zone; } | |
100 int yellow_zone() const { return _yellow_zone; } | |
101 int red_zone() const { return _red_zone; } | |
102 | |
103 int total_thread_num() const { return _n_threads; } | |
104 int worker_thread_num() const { return _n_worker_threads; } | |
105 | |
106 int thread_threshold_step() const { return _thread_threshold_step; } | |
10246
194f52aa2f23
7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
6842
diff
changeset
|
107 |
194f52aa2f23
7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
6842
diff
changeset
|
108 G1HotCardCache* hot_card_cache() { return &_hot_card_cache; } |
342 | 109 }; |
1972 | 110 |
111 #endif // SHARE_VM_GC_IMPLEMENTATION_G1_CONCURRENTG1REFINE_HPP |