author | jwilhelm |
Wed, 03 Oct 2012 20:31:41 +0200 | |
changeset 13925 | 37f75ba502b1 |
parent 13728 | 882756847a04 |
child 17852 | 59b05e1db547 |
permissions | -rw-r--r-- |
1 | 1 |
/* |
11753 | 2 |
* Copyright (c) 2002, 2012, Oracle and/or its affiliates. All rights reserved. |
1 | 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 |
* |
|
5547
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
670
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
670
diff
changeset
|
20 |
* or visit www.oracle.com if you need additional information or have any |
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
670
diff
changeset
|
21 |
* questions. |
1 | 22 |
* |
23 |
*/ |
|
24 |
||
7397 | 25 |
#ifndef SHARE_VM_GC_IMPLEMENTATION_PARALLELSCAVENGE_PSSCAVENGE_INLINE_HPP |
26 |
#define SHARE_VM_GC_IMPLEMENTATION_PARALLELSCAVENGE_PSSCAVENGE_INLINE_HPP |
|
27 |
||
28 |
#include "gc_implementation/parallelScavenge/cardTableExtension.hpp" |
|
29 |
#include "gc_implementation/parallelScavenge/parallelScavengeHeap.hpp" |
|
30 |
#include "gc_implementation/parallelScavenge/psPromotionManager.hpp" |
|
11753 | 31 |
#include "gc_implementation/parallelScavenge/psPromotionManager.inline.hpp" |
7397 | 32 |
#include "gc_implementation/parallelScavenge/psScavenge.hpp" |
13728
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
33 |
#include "memory/iterator.hpp" |
7397 | 34 |
|
1 | 35 |
inline void PSScavenge::save_to_space_top_before_gc() { |
36 |
ParallelScavengeHeap* heap = (ParallelScavengeHeap*)Universe::heap(); |
|
37 |
_to_space_top_before_gc = heap->young_gen()->to_space()->top(); |
|
38 |
} |
|
39 |
||
360
21d113ecbf6a
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
1
diff
changeset
|
40 |
template <class T> inline bool PSScavenge::should_scavenge(T* p) { |
21d113ecbf6a
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
1
diff
changeset
|
41 |
T heap_oop = oopDesc::load_heap_oop(p); |
21d113ecbf6a
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
1
diff
changeset
|
42 |
if (oopDesc::is_null(heap_oop)) return false; |
21d113ecbf6a
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
1
diff
changeset
|
43 |
oop obj = oopDesc::decode_heap_oop_not_null(heap_oop); |
21d113ecbf6a
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
1
diff
changeset
|
44 |
return PSScavenge::is_obj_in_young((HeapWord*)obj); |
1 | 45 |
} |
46 |
||
360
21d113ecbf6a
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
1
diff
changeset
|
47 |
template <class T> |
21d113ecbf6a
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
1
diff
changeset
|
48 |
inline bool PSScavenge::should_scavenge(T* p, MutableSpace* to_space) { |
1 | 49 |
if (should_scavenge(p)) { |
360
21d113ecbf6a
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
1
diff
changeset
|
50 |
oop obj = oopDesc::load_decode_heap_oop_not_null(p); |
1 | 51 |
// Skip objects copied to to_space since the scavenge started. |
360
21d113ecbf6a
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
1
diff
changeset
|
52 |
HeapWord* const addr = (HeapWord*)obj; |
1 | 53 |
return addr < to_space_top_before_gc() || addr >= to_space->end(); |
54 |
} |
|
55 |
return false; |
|
56 |
} |
|
57 |
||
360
21d113ecbf6a
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
1
diff
changeset
|
58 |
template <class T> |
21d113ecbf6a
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
1
diff
changeset
|
59 |
inline bool PSScavenge::should_scavenge(T* p, bool check_to_space) { |
1 | 60 |
if (check_to_space) { |
360
21d113ecbf6a
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
1
diff
changeset
|
61 |
ParallelScavengeHeap* heap = (ParallelScavengeHeap*)Universe::heap(); |
1 | 62 |
return should_scavenge(p, heap->young_gen()->to_space()); |
63 |
} |
|
64 |
return should_scavenge(p); |
|
65 |
} |
|
66 |
||
67 |
// Attempt to "claim" oop at p via CAS, push the new obj if successful |
|
68 |
// This version tests the oop* to make sure it is within the heap before |
|
69 |
// attempting marking. |
|
11753 | 70 |
template <class T, bool promote_immediately> |
1 | 71 |
inline void PSScavenge::copy_and_push_safe_barrier(PSPromotionManager* pm, |
360
21d113ecbf6a
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
1
diff
changeset
|
72 |
T* p) { |
21d113ecbf6a
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
1
diff
changeset
|
73 |
assert(should_scavenge(p, true), "revisiting object?"); |
1 | 74 |
|
360
21d113ecbf6a
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
1
diff
changeset
|
75 |
oop o = oopDesc::load_decode_heap_oop_not_null(p); |
21d113ecbf6a
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
1
diff
changeset
|
76 |
oop new_obj = o->is_forwarded() |
21d113ecbf6a
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
1
diff
changeset
|
77 |
? o->forwardee() |
11753 | 78 |
: pm->copy_to_survivor_space<promote_immediately>(o); |
13728
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
79 |
|
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
80 |
#ifndef PRODUCT |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
81 |
// This code must come after the CAS test, or it will print incorrect |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
82 |
// information. |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
83 |
if (TraceScavenge && o->is_forwarded()) { |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
84 |
gclog_or_tty->print_cr("{%s %s " PTR_FORMAT " -> " PTR_FORMAT " (%d)}", |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
85 |
"forwarding", |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
86 |
new_obj->klass()->internal_name(), o, new_obj, new_obj->size()); |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
87 |
} |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
88 |
#endif |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
89 |
|
360
21d113ecbf6a
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
1
diff
changeset
|
90 |
oopDesc::encode_store_heap_oop_not_null(p, new_obj); |
1 | 91 |
|
92 |
// We cannot mark without test, as some code passes us pointers |
|
13728
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
93 |
// that are outside the heap. These pointers are either from roots |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
94 |
// or from metadata. |
360
21d113ecbf6a
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
1
diff
changeset
|
95 |
if ((!PSScavenge::is_obj_in_young((HeapWord*)p)) && |
1 | 96 |
Universe::heap()->is_in_reserved(p)) { |
360
21d113ecbf6a
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
1
diff
changeset
|
97 |
if (PSScavenge::is_obj_in_young((HeapWord*)new_obj)) { |
21d113ecbf6a
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
1
diff
changeset
|
98 |
card_table()->inline_write_ref_field_gc(p, new_obj); |
1 | 99 |
} |
100 |
} |
|
101 |
} |
|
7397 | 102 |
|
11753 | 103 |
template<bool promote_immediately> |
104 |
class PSRootsClosure: public OopClosure { |
|
8728
3f1bcd33068e
6962931: move interned strings out of the perm gen
jcoomes
parents:
7397
diff
changeset
|
105 |
private: |
3f1bcd33068e
6962931: move interned strings out of the perm gen
jcoomes
parents:
7397
diff
changeset
|
106 |
PSPromotionManager* _promotion_manager; |
3f1bcd33068e
6962931: move interned strings out of the perm gen
jcoomes
parents:
7397
diff
changeset
|
107 |
|
3f1bcd33068e
6962931: move interned strings out of the perm gen
jcoomes
parents:
7397
diff
changeset
|
108 |
protected: |
3f1bcd33068e
6962931: move interned strings out of the perm gen
jcoomes
parents:
7397
diff
changeset
|
109 |
template <class T> void do_oop_work(T *p) { |
3f1bcd33068e
6962931: move interned strings out of the perm gen
jcoomes
parents:
7397
diff
changeset
|
110 |
if (PSScavenge::should_scavenge(p)) { |
3f1bcd33068e
6962931: move interned strings out of the perm gen
jcoomes
parents:
7397
diff
changeset
|
111 |
// We never card mark roots, maybe call a func without test? |
11753 | 112 |
PSScavenge::copy_and_push_safe_barrier<T, promote_immediately>(_promotion_manager, p); |
8728
3f1bcd33068e
6962931: move interned strings out of the perm gen
jcoomes
parents:
7397
diff
changeset
|
113 |
} |
3f1bcd33068e
6962931: move interned strings out of the perm gen
jcoomes
parents:
7397
diff
changeset
|
114 |
} |
3f1bcd33068e
6962931: move interned strings out of the perm gen
jcoomes
parents:
7397
diff
changeset
|
115 |
public: |
11753 | 116 |
PSRootsClosure(PSPromotionManager* pm) : _promotion_manager(pm) { } |
117 |
void do_oop(oop* p) { PSRootsClosure::do_oop_work(p); } |
|
118 |
void do_oop(narrowOop* p) { PSRootsClosure::do_oop_work(p); } |
|
8728
3f1bcd33068e
6962931: move interned strings out of the perm gen
jcoomes
parents:
7397
diff
changeset
|
119 |
}; |
3f1bcd33068e
6962931: move interned strings out of the perm gen
jcoomes
parents:
7397
diff
changeset
|
120 |
|
11753 | 121 |
typedef PSRootsClosure</*promote_immediately=*/false> PSScavengeRootsClosure; |
122 |
typedef PSRootsClosure</*promote_immediately=*/true> PSPromoteRootsClosure; |
|
123 |
||
13728
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
124 |
// Scavenges a single oop in a Klass. |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
125 |
class PSScavengeFromKlassClosure: public OopClosure { |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
126 |
private: |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
127 |
PSPromotionManager* _pm; |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
128 |
// Used to redirty a scanned klass if it has oops |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
129 |
// pointing to the young generation after being scanned. |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
130 |
Klass* _scanned_klass; |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
131 |
public: |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
132 |
PSScavengeFromKlassClosure(PSPromotionManager* pm) : _pm(pm), _scanned_klass(NULL) { } |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
133 |
void do_oop(narrowOop* p) { ShouldNotReachHere(); } |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
134 |
void do_oop(oop* p) { |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
135 |
ParallelScavengeHeap* psh = ParallelScavengeHeap::heap(); |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
136 |
assert(!psh->is_in_reserved(p), "GC barrier needed"); |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
137 |
if (PSScavenge::should_scavenge(p)) { |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
138 |
assert(!Universe::heap()->is_in_reserved(p), "Not from meta-data?"); |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
139 |
assert(PSScavenge::should_scavenge(p, true), "revisiting object?"); |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
140 |
|
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
141 |
oop o = *p; |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
142 |
oop new_obj; |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
143 |
if (o->is_forwarded()) { |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
144 |
new_obj = o->forwardee(); |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
145 |
} else { |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
146 |
new_obj = _pm->copy_to_survivor_space</*promote_immediately=*/false>(o); |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
147 |
} |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
148 |
oopDesc::encode_store_heap_oop_not_null(p, new_obj); |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
149 |
|
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
150 |
if (PSScavenge::is_obj_in_young((HeapWord*)new_obj)) { |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
151 |
do_klass_barrier(); |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
152 |
} |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
153 |
} |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
154 |
} |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
155 |
|
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
156 |
void set_scanned_klass(Klass* klass) { |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
157 |
assert(_scanned_klass == NULL || klass == NULL, "Should always only handling one klass at a time"); |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
158 |
_scanned_klass = klass; |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
159 |
} |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
160 |
|
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
161 |
private: |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
162 |
void do_klass_barrier() { |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
163 |
assert(_scanned_klass != NULL, "Should not be called without having a scanned klass"); |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
164 |
_scanned_klass->record_modified_oops(); |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
165 |
} |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
166 |
|
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
167 |
}; |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
168 |
|
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
169 |
// Scavenges the oop in a Klass. |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
170 |
class PSScavengeKlassClosure: public KlassClosure { |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
171 |
private: |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
172 |
PSScavengeFromKlassClosure _oop_closure; |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
173 |
protected: |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
174 |
public: |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
175 |
PSScavengeKlassClosure(PSPromotionManager* pm) : _oop_closure(pm) { } |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
176 |
void do_klass(Klass* klass) { |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
177 |
// If the klass has not been dirtied we know that there's |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
178 |
// no references into the young gen and we can skip it. |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
179 |
|
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
180 |
#ifndef PRODUCT |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
181 |
if (TraceScavenge) { |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
182 |
ResourceMark rm; |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
183 |
gclog_or_tty->print_cr("PSScavengeKlassClosure::do_klass %p, %s, dirty: %s", |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
184 |
klass, |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
185 |
klass->external_name(), |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
186 |
klass->has_modified_oops() ? "true" : "false"); |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
187 |
} |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
188 |
#endif |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
189 |
|
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
190 |
if (klass->has_modified_oops()) { |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
191 |
// Clean the klass since we're going to scavenge all the metadata. |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
192 |
klass->clear_modified_oops(); |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
193 |
|
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
194 |
// Setup the promotion manager to redirty this klass |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
195 |
// if references are left in the young gen. |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
196 |
_oop_closure.set_scanned_klass(klass); |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
197 |
|
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
198 |
klass->oops_do(&_oop_closure); |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
199 |
|
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
200 |
_oop_closure.set_scanned_klass(NULL); |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
201 |
} |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
202 |
} |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
203 |
}; |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
11753
diff
changeset
|
204 |
|
7397 | 205 |
#endif // SHARE_VM_GC_IMPLEMENTATION_PARALLELSCAVENGE_PSSCAVENGE_INLINE_HPP |