Mercurial > hg > truffle
annotate src/share/vm/gc_implementation/parallelScavenge/psScavenge.inline.hpp @ 18886:9afe8fbe088c
Add -G:[-/+]PrintIdealGraph option.
author | Josef Eisl <josef.eisl@jku.at> |
---|---|
date | Mon, 19 Jan 2015 18:00:28 +0100 |
parents | 78bbf4d43a14 |
children |
rev | line source |
---|---|
0 | 1 /* |
17937
78bbf4d43a14
8037816: Fix for 8036122 breaks build with Xcode5/clang
drchase
parents:
12316
diff
changeset
|
2 * Copyright (c) 2002, 2014, Oracle and/or its affiliates. All rights reserved. |
0 | 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:
196
diff
changeset
|
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
196
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:
196
diff
changeset
|
21 * questions. |
0 | 22 * |
23 */ | |
24 | |
1972 | 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" | |
4909 | 31 #include "gc_implementation/parallelScavenge/psPromotionManager.inline.hpp" |
1972 | 32 #include "gc_implementation/parallelScavenge/psScavenge.hpp" |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
33 #include "memory/iterator.hpp" |
1972 | 34 |
0 | 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 | |
113
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
40 template <class T> inline bool PSScavenge::should_scavenge(T* p) { |
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
41 T heap_oop = oopDesc::load_heap_oop(p); |
10370
47bdfb3d010f
8015486: PSScavenge::is_obj_in_young is unnecessarily slow with UseCompressedOops
stefank
parents:
6725
diff
changeset
|
42 return PSScavenge::is_obj_in_young(heap_oop); |
0 | 43 } |
44 | |
113
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
45 template <class T> |
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
46 inline bool PSScavenge::should_scavenge(T* p, MutableSpace* to_space) { |
0 | 47 if (should_scavenge(p)) { |
113
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
48 oop obj = oopDesc::load_decode_heap_oop_not_null(p); |
0 | 49 // Skip objects copied to to_space since the scavenge started. |
113
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
50 HeapWord* const addr = (HeapWord*)obj; |
0 | 51 return addr < to_space_top_before_gc() || addr >= to_space->end(); |
52 } | |
53 return false; | |
54 } | |
55 | |
113
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
56 template <class T> |
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
57 inline bool PSScavenge::should_scavenge(T* p, bool check_to_space) { |
0 | 58 if (check_to_space) { |
113
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
59 ParallelScavengeHeap* heap = (ParallelScavengeHeap*)Universe::heap(); |
0 | 60 return should_scavenge(p, heap->young_gen()->to_space()); |
61 } | |
62 return should_scavenge(p); | |
63 } | |
64 | |
65 // Attempt to "claim" oop at p via CAS, push the new obj if successful | |
66 // This version tests the oop* to make sure it is within the heap before | |
67 // attempting marking. | |
4909 | 68 template <class T, bool promote_immediately> |
0 | 69 inline void PSScavenge::copy_and_push_safe_barrier(PSPromotionManager* pm, |
113
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
70 T* p) { |
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
71 assert(should_scavenge(p, true), "revisiting object?"); |
0 | 72 |
113
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
73 oop o = oopDesc::load_decode_heap_oop_not_null(p); |
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
74 oop new_obj = o->is_forwarded() |
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
75 ? o->forwardee() |
4909 | 76 : pm->copy_to_survivor_space<promote_immediately>(o); |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
77 |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
78 #ifndef PRODUCT |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
79 // This code must come after the CAS test, or it will print incorrect |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
80 // information. |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
81 if (TraceScavenge && o->is_forwarded()) { |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
82 gclog_or_tty->print_cr("{%s %s " PTR_FORMAT " -> " PTR_FORMAT " (%d)}", |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
83 "forwarding", |
17937
78bbf4d43a14
8037816: Fix for 8036122 breaks build with Xcode5/clang
drchase
parents:
12316
diff
changeset
|
84 new_obj->klass()->internal_name(), p2i((void *)o), p2i((void *)new_obj), new_obj->size()); |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
85 } |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
86 #endif |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
87 |
113
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
88 oopDesc::encode_store_heap_oop_not_null(p, new_obj); |
0 | 89 |
90 // We cannot mark without test, as some code passes us pointers | |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
91 // that are outside the heap. These pointers are either from roots |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
92 // or from metadata. |
113
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
93 if ((!PSScavenge::is_obj_in_young((HeapWord*)p)) && |
0 | 94 Universe::heap()->is_in_reserved(p)) { |
10370
47bdfb3d010f
8015486: PSScavenge::is_obj_in_young is unnecessarily slow with UseCompressedOops
stefank
parents:
6725
diff
changeset
|
95 if (PSScavenge::is_obj_in_young(new_obj)) { |
113
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
96 card_table()->inline_write_ref_field_gc(p, new_obj); |
0 | 97 } |
98 } | |
99 } | |
1972 | 100 |
4909 | 101 template<bool promote_immediately> |
102 class PSRootsClosure: public OopClosure { | |
2379
b099aaf51bf8
6962931: move interned strings out of the perm gen
jcoomes
parents:
1972
diff
changeset
|
103 private: |
b099aaf51bf8
6962931: move interned strings out of the perm gen
jcoomes
parents:
1972
diff
changeset
|
104 PSPromotionManager* _promotion_manager; |
b099aaf51bf8
6962931: move interned strings out of the perm gen
jcoomes
parents:
1972
diff
changeset
|
105 |
b099aaf51bf8
6962931: move interned strings out of the perm gen
jcoomes
parents:
1972
diff
changeset
|
106 protected: |
b099aaf51bf8
6962931: move interned strings out of the perm gen
jcoomes
parents:
1972
diff
changeset
|
107 template <class T> void do_oop_work(T *p) { |
b099aaf51bf8
6962931: move interned strings out of the perm gen
jcoomes
parents:
1972
diff
changeset
|
108 if (PSScavenge::should_scavenge(p)) { |
b099aaf51bf8
6962931: move interned strings out of the perm gen
jcoomes
parents:
1972
diff
changeset
|
109 // We never card mark roots, maybe call a func without test? |
4909 | 110 PSScavenge::copy_and_push_safe_barrier<T, promote_immediately>(_promotion_manager, p); |
2379
b099aaf51bf8
6962931: move interned strings out of the perm gen
jcoomes
parents:
1972
diff
changeset
|
111 } |
b099aaf51bf8
6962931: move interned strings out of the perm gen
jcoomes
parents:
1972
diff
changeset
|
112 } |
b099aaf51bf8
6962931: move interned strings out of the perm gen
jcoomes
parents:
1972
diff
changeset
|
113 public: |
4909 | 114 PSRootsClosure(PSPromotionManager* pm) : _promotion_manager(pm) { } |
115 void do_oop(oop* p) { PSRootsClosure::do_oop_work(p); } | |
116 void do_oop(narrowOop* p) { PSRootsClosure::do_oop_work(p); } | |
2379
b099aaf51bf8
6962931: move interned strings out of the perm gen
jcoomes
parents:
1972
diff
changeset
|
117 }; |
b099aaf51bf8
6962931: move interned strings out of the perm gen
jcoomes
parents:
1972
diff
changeset
|
118 |
4909 | 119 typedef PSRootsClosure</*promote_immediately=*/false> PSScavengeRootsClosure; |
120 typedef PSRootsClosure</*promote_immediately=*/true> PSPromoteRootsClosure; | |
121 | |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
122 // Scavenges a single oop in a Klass. |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
123 class PSScavengeFromKlassClosure: public OopClosure { |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
124 private: |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
125 PSPromotionManager* _pm; |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
126 // Used to redirty a scanned klass if it has oops |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
127 // pointing to the young generation after being scanned. |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
128 Klass* _scanned_klass; |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
129 public: |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
130 PSScavengeFromKlassClosure(PSPromotionManager* pm) : _pm(pm), _scanned_klass(NULL) { } |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
131 void do_oop(narrowOop* p) { ShouldNotReachHere(); } |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
132 void do_oop(oop* p) { |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
133 ParallelScavengeHeap* psh = ParallelScavengeHeap::heap(); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
134 assert(!psh->is_in_reserved(p), "GC barrier needed"); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
135 if (PSScavenge::should_scavenge(p)) { |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
136 assert(!Universe::heap()->is_in_reserved(p), "Not from meta-data?"); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
137 assert(PSScavenge::should_scavenge(p, true), "revisiting object?"); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
138 |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
139 oop o = *p; |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
140 oop new_obj; |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
141 if (o->is_forwarded()) { |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
142 new_obj = o->forwardee(); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
143 } else { |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
144 new_obj = _pm->copy_to_survivor_space</*promote_immediately=*/false>(o); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
145 } |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
146 oopDesc::encode_store_heap_oop_not_null(p, new_obj); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
147 |
10370
47bdfb3d010f
8015486: PSScavenge::is_obj_in_young is unnecessarily slow with UseCompressedOops
stefank
parents:
6725
diff
changeset
|
148 if (PSScavenge::is_obj_in_young(new_obj)) { |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
149 do_klass_barrier(); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
150 } |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
151 } |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
152 } |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
153 |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
154 void set_scanned_klass(Klass* klass) { |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
155 assert(_scanned_klass == NULL || klass == NULL, "Should always only handling one klass at a time"); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
156 _scanned_klass = klass; |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
157 } |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
158 |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
159 private: |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
160 void do_klass_barrier() { |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
161 assert(_scanned_klass != NULL, "Should not be called without having a scanned klass"); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
162 _scanned_klass->record_modified_oops(); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
163 } |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
164 |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
165 }; |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
166 |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
167 // Scavenges the oop in a Klass. |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
168 class PSScavengeKlassClosure: public KlassClosure { |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
169 private: |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
170 PSScavengeFromKlassClosure _oop_closure; |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
171 protected: |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
172 public: |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
173 PSScavengeKlassClosure(PSPromotionManager* pm) : _oop_closure(pm) { } |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
174 void do_klass(Klass* klass) { |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
175 // If the klass has not been dirtied we know that there's |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
176 // no references into the young gen and we can skip it. |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
177 |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
178 #ifndef PRODUCT |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
179 if (TraceScavenge) { |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
180 ResourceMark rm; |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
181 gclog_or_tty->print_cr("PSScavengeKlassClosure::do_klass %p, %s, dirty: %s", |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
182 klass, |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
183 klass->external_name(), |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
184 klass->has_modified_oops() ? "true" : "false"); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
185 } |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
186 #endif |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
187 |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
188 if (klass->has_modified_oops()) { |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
189 // Clean the klass since we're going to scavenge all the metadata. |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
190 klass->clear_modified_oops(); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
191 |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
192 // Setup the promotion manager to redirty this klass |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
193 // if references are left in the young gen. |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
194 _oop_closure.set_scanned_klass(klass); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
195 |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
196 klass->oops_do(&_oop_closure); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
197 |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
198 _oop_closure.set_scanned_klass(NULL); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
199 } |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
200 } |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
201 }; |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
202 |
1972 | 203 #endif // SHARE_VM_GC_IMPLEMENTATION_PARALLELSCAVENGE_PSSCAVENGE_INLINE_HPP |