author | erikj |
Tue, 12 Sep 2017 19:03:39 +0200 | |
changeset 47216 | 71c04702a3d5 |
parent 35051 | hotspot/src/share/vm/gc/g1/g1SharedClosures.hpp@002d874a4284 |
child 47580 | 96392e113a0a |
permissions | -rw-r--r-- |
34308
4496e81c890d
8142494: Add extension point to G1EvacuationRootClosures
ehelin
parents:
diff
changeset
|
1 |
/* |
4496e81c890d
8142494: Add extension point to G1EvacuationRootClosures
ehelin
parents:
diff
changeset
|
2 |
* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. |
4496e81c890d
8142494: Add extension point to G1EvacuationRootClosures
ehelin
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4496e81c890d
8142494: Add extension point to G1EvacuationRootClosures
ehelin
parents:
diff
changeset
|
4 |
* |
4496e81c890d
8142494: Add extension point to G1EvacuationRootClosures
ehelin
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
4496e81c890d
8142494: Add extension point to G1EvacuationRootClosures
ehelin
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
4496e81c890d
8142494: Add extension point to G1EvacuationRootClosures
ehelin
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. |
4496e81c890d
8142494: Add extension point to G1EvacuationRootClosures
ehelin
parents:
diff
changeset
|
8 |
* |
4496e81c890d
8142494: Add extension point to G1EvacuationRootClosures
ehelin
parents:
diff
changeset
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
4496e81c890d
8142494: Add extension point to G1EvacuationRootClosures
ehelin
parents:
diff
changeset
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
4496e81c890d
8142494: Add extension point to G1EvacuationRootClosures
ehelin
parents:
diff
changeset
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
4496e81c890d
8142494: Add extension point to G1EvacuationRootClosures
ehelin
parents:
diff
changeset
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
4496e81c890d
8142494: Add extension point to G1EvacuationRootClosures
ehelin
parents:
diff
changeset
|
13 |
* accompanied this code). |
4496e81c890d
8142494: Add extension point to G1EvacuationRootClosures
ehelin
parents:
diff
changeset
|
14 |
* |
4496e81c890d
8142494: Add extension point to G1EvacuationRootClosures
ehelin
parents:
diff
changeset
|
15 |
* You should have received a copy of the GNU General Public License version |
4496e81c890d
8142494: Add extension point to G1EvacuationRootClosures
ehelin
parents:
diff
changeset
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
4496e81c890d
8142494: Add extension point to G1EvacuationRootClosures
ehelin
parents:
diff
changeset
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
4496e81c890d
8142494: Add extension point to G1EvacuationRootClosures
ehelin
parents:
diff
changeset
|
18 |
* |
4496e81c890d
8142494: Add extension point to G1EvacuationRootClosures
ehelin
parents:
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
4496e81c890d
8142494: Add extension point to G1EvacuationRootClosures
ehelin
parents:
diff
changeset
|
20 |
* or visit www.oracle.com if you need additional information or have any |
4496e81c890d
8142494: Add extension point to G1EvacuationRootClosures
ehelin
parents:
diff
changeset
|
21 |
* questions. |
4496e81c890d
8142494: Add extension point to G1EvacuationRootClosures
ehelin
parents:
diff
changeset
|
22 |
* |
4496e81c890d
8142494: Add extension point to G1EvacuationRootClosures
ehelin
parents:
diff
changeset
|
23 |
*/ |
4496e81c890d
8142494: Add extension point to G1EvacuationRootClosures
ehelin
parents:
diff
changeset
|
24 |
|
4496e81c890d
8142494: Add extension point to G1EvacuationRootClosures
ehelin
parents:
diff
changeset
|
25 |
#include "gc/g1/bufferingOopClosure.hpp" |
4496e81c890d
8142494: Add extension point to G1EvacuationRootClosures
ehelin
parents:
diff
changeset
|
26 |
#include "gc/g1/g1CodeBlobClosure.hpp" |
34639 | 27 |
#include "gc/g1/g1OopClosures.hpp" |
28 |
#include "memory/iterator.hpp" |
|
29 |
||
30 |
class G1CollectedHeap; |
|
31 |
class G1ParScanThreadState; |
|
34308
4496e81c890d
8142494: Add extension point to G1EvacuationRootClosures
ehelin
parents:
diff
changeset
|
32 |
|
4496e81c890d
8142494: Add extension point to G1EvacuationRootClosures
ehelin
parents:
diff
changeset
|
33 |
// Simple holder object for a complete set of closures used by the G1 evacuation code. |
35051
002d874a4284
8144714: Add extension point to G1 evacuation closures
mgerdin
parents:
34639
diff
changeset
|
34 |
template <G1Mark Mark, bool use_ext = false> |
34308
4496e81c890d
8142494: Add extension point to G1EvacuationRootClosures
ehelin
parents:
diff
changeset
|
35 |
class G1SharedClosures VALUE_OBJ_CLASS_SPEC { |
4496e81c890d
8142494: Add extension point to G1EvacuationRootClosures
ehelin
parents:
diff
changeset
|
36 |
public: |
35051
002d874a4284
8144714: Add extension point to G1 evacuation closures
mgerdin
parents:
34639
diff
changeset
|
37 |
G1ParCopyClosure<G1BarrierNone, Mark, use_ext> _oops; |
002d874a4284
8144714: Add extension point to G1 evacuation closures
mgerdin
parents:
34639
diff
changeset
|
38 |
G1ParCopyClosure<G1BarrierKlass, Mark, use_ext> _oop_in_klass; |
002d874a4284
8144714: Add extension point to G1 evacuation closures
mgerdin
parents:
34639
diff
changeset
|
39 |
G1KlassScanClosure _klass_in_cld_closure; |
002d874a4284
8144714: Add extension point to G1 evacuation closures
mgerdin
parents:
34639
diff
changeset
|
40 |
CLDToKlassAndOopClosure _clds; |
002d874a4284
8144714: Add extension point to G1 evacuation closures
mgerdin
parents:
34639
diff
changeset
|
41 |
G1CodeBlobClosure _codeblobs; |
002d874a4284
8144714: Add extension point to G1 evacuation closures
mgerdin
parents:
34639
diff
changeset
|
42 |
BufferingOopClosure _buffered_oops; |
34308
4496e81c890d
8142494: Add extension point to G1EvacuationRootClosures
ehelin
parents:
diff
changeset
|
43 |
|
4496e81c890d
8142494: Add extension point to G1EvacuationRootClosures
ehelin
parents:
diff
changeset
|
44 |
G1SharedClosures(G1CollectedHeap* g1h, G1ParScanThreadState* pss, bool process_only_dirty_klasses, bool must_claim_cld) : |
4496e81c890d
8142494: Add extension point to G1EvacuationRootClosures
ehelin
parents:
diff
changeset
|
45 |
_oops(g1h, pss), |
4496e81c890d
8142494: Add extension point to G1EvacuationRootClosures
ehelin
parents:
diff
changeset
|
46 |
_oop_in_klass(g1h, pss), |
4496e81c890d
8142494: Add extension point to G1EvacuationRootClosures
ehelin
parents:
diff
changeset
|
47 |
_klass_in_cld_closure(&_oop_in_klass, process_only_dirty_klasses), |
4496e81c890d
8142494: Add extension point to G1EvacuationRootClosures
ehelin
parents:
diff
changeset
|
48 |
_clds(&_klass_in_cld_closure, &_oops, must_claim_cld), |
4496e81c890d
8142494: Add extension point to G1EvacuationRootClosures
ehelin
parents:
diff
changeset
|
49 |
_codeblobs(&_oops), |
4496e81c890d
8142494: Add extension point to G1EvacuationRootClosures
ehelin
parents:
diff
changeset
|
50 |
_buffered_oops(&_oops) {} |
4496e81c890d
8142494: Add extension point to G1EvacuationRootClosures
ehelin
parents:
diff
changeset
|
51 |
}; |