Mercurial > hg > graal-compiler
annotate src/share/vm/gc_implementation/parallelScavenge/psScavenge.inline.hpp @ 10290:05a17f270c7e
8014240: G1: Add remembered set size information to output of G1PrintRegionLivenessInfo
Summary: Improve the output of G1PrintRegionLivenessInfo by adding a per-region remembered set size information column
Reviewed-by: jwilhelm, johnc
author | tschatzl |
---|---|
date | Thu, 16 May 2013 13:02:33 +0200 |
parents | da91efe96a93 |
children | 47bdfb3d010f |
rev | line source |
---|---|
0 | 1 /* |
4909 | 2 * Copyright (c) 2002, 2012, 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); |
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
42 if (oopDesc::is_null(heap_oop)) return false; |
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
43 oop obj = oopDesc::decode_heap_oop_not_null(heap_oop); |
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
44 return PSScavenge::is_obj_in_young((HeapWord*)obj); |
0 | 45 } |
46 | |
113
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
47 template <class T> |
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
48 inline bool PSScavenge::should_scavenge(T* p, MutableSpace* to_space) { |
0 | 49 if (should_scavenge(p)) { |
113
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
50 oop obj = oopDesc::load_decode_heap_oop_not_null(p); |
0 | 51 // 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
|
52 HeapWord* const addr = (HeapWord*)obj; |
0 | 53 return addr < to_space_top_before_gc() || addr >= to_space->end(); |
54 } | |
55 return false; | |
56 } | |
57 | |
113
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
58 template <class T> |
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
59 inline bool PSScavenge::should_scavenge(T* p, bool check_to_space) { |
0 | 60 if (check_to_space) { |
113
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
61 ParallelScavengeHeap* heap = (ParallelScavengeHeap*)Universe::heap(); |
0 | 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. | |
4909 | 70 template <class T, bool promote_immediately> |
0 | 71 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
|
72 T* p) { |
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
73 assert(should_scavenge(p, true), "revisiting object?"); |
0 | 74 |
113
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
75 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
|
76 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
|
77 ? o->forwardee() |
4909 | 78 : 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
|
79 |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
80 #ifndef PRODUCT |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
81 // 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
|
82 // information. |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
83 if (TraceScavenge && o->is_forwarded()) { |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
84 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
|
85 "forwarding", |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
86 new_obj->klass()->internal_name(), o, new_obj, new_obj->size()); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
87 } |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
88 #endif |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
89 |
113
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
90 oopDesc::encode_store_heap_oop_not_null(p, new_obj); |
0 | 91 |
92 // 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
|
93 // 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
|
94 // or from metadata. |
113
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
95 if ((!PSScavenge::is_obj_in_young((HeapWord*)p)) && |
0 | 96 Universe::heap()->is_in_reserved(p)) { |
113
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
97 if (PSScavenge::is_obj_in_young((HeapWord*)new_obj)) { |
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
98 card_table()->inline_write_ref_field_gc(p, new_obj); |
0 | 99 } |
100 } | |
101 } | |
1972 | 102 |
4909 | 103 template<bool promote_immediately> |
104 class PSRootsClosure: public OopClosure { | |
2379
b099aaf51bf8
6962931: move interned strings out of the perm gen
jcoomes
parents:
1972
diff
changeset
|
105 private: |
b099aaf51bf8
6962931: move interned strings out of the perm gen
jcoomes
parents:
1972
diff
changeset
|
106 PSPromotionManager* _promotion_manager; |
b099aaf51bf8
6962931: move interned strings out of the perm gen
jcoomes
parents:
1972
diff
changeset
|
107 |
b099aaf51bf8
6962931: move interned strings out of the perm gen
jcoomes
parents:
1972
diff
changeset
|
108 protected: |
b099aaf51bf8
6962931: move interned strings out of the perm gen
jcoomes
parents:
1972
diff
changeset
|
109 template <class T> void do_oop_work(T *p) { |
b099aaf51bf8
6962931: move interned strings out of the perm gen
jcoomes
parents:
1972
diff
changeset
|
110 if (PSScavenge::should_scavenge(p)) { |
b099aaf51bf8
6962931: move interned strings out of the perm gen
jcoomes
parents:
1972
diff
changeset
|
111 // We never card mark roots, maybe call a func without test? |
4909 | 112 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
|
113 } |
b099aaf51bf8
6962931: move interned strings out of the perm gen
jcoomes
parents:
1972
diff
changeset
|
114 } |
b099aaf51bf8
6962931: move interned strings out of the perm gen
jcoomes
parents:
1972
diff
changeset
|
115 public: |
4909 | 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); } | |
2379
b099aaf51bf8
6962931: move interned strings out of the perm gen
jcoomes
parents:
1972
diff
changeset
|
119 }; |
b099aaf51bf8
6962931: move interned strings out of the perm gen
jcoomes
parents:
1972
diff
changeset
|
120 |
4909 | 121 typedef PSRootsClosure</*promote_immediately=*/false> PSScavengeRootsClosure; |
122 typedef PSRootsClosure</*promote_immediately=*/true> PSPromoteRootsClosure; | |
123 | |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
124 // Scavenges a single oop in a Klass. |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
125 class PSScavengeFromKlassClosure: public OopClosure { |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
126 private: |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
127 PSPromotionManager* _pm; |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
128 // 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
|
129 // pointing to the young generation after being scanned. |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
130 Klass* _scanned_klass; |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
131 public: |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
132 PSScavengeFromKlassClosure(PSPromotionManager* pm) : _pm(pm), _scanned_klass(NULL) { } |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
133 void do_oop(narrowOop* p) { ShouldNotReachHere(); } |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
134 void do_oop(oop* p) { |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
135 ParallelScavengeHeap* psh = ParallelScavengeHeap::heap(); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
136 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
|
137 if (PSScavenge::should_scavenge(p)) { |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
138 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
|
139 assert(PSScavenge::should_scavenge(p, true), "revisiting object?"); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
140 |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
141 oop o = *p; |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
142 oop new_obj; |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
143 if (o->is_forwarded()) { |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
144 new_obj = o->forwardee(); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
145 } else { |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
146 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
|
147 } |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
148 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
|
149 |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
150 if (PSScavenge::is_obj_in_young((HeapWord*)new_obj)) { |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
151 do_klass_barrier(); |
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 } |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
155 |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
156 void set_scanned_klass(Klass* klass) { |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
157 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
|
158 _scanned_klass = klass; |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
159 } |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
160 |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
161 private: |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
162 void do_klass_barrier() { |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
163 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
|
164 _scanned_klass->record_modified_oops(); |
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 }; |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
168 |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
169 // Scavenges the oop in a Klass. |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
170 class PSScavengeKlassClosure: public KlassClosure { |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
171 private: |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
172 PSScavengeFromKlassClosure _oop_closure; |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
173 protected: |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
174 public: |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
175 PSScavengeKlassClosure(PSPromotionManager* pm) : _oop_closure(pm) { } |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
176 void do_klass(Klass* klass) { |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
177 // 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
|
178 // 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
|
179 |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
180 #ifndef PRODUCT |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
181 if (TraceScavenge) { |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
182 ResourceMark rm; |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
183 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
|
184 klass, |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
185 klass->external_name(), |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
186 klass->has_modified_oops() ? "true" : "false"); |
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 #endif |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
189 |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
190 if (klass->has_modified_oops()) { |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
191 // 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
|
192 klass->clear_modified_oops(); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
193 |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
194 // Setup the promotion manager to redirty this klass |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
195 // if references are left in the young gen. |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
196 _oop_closure.set_scanned_klass(klass); |
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 klass->oops_do(&_oop_closure); |
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 _oop_closure.set_scanned_klass(NULL); |
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 } |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
203 }; |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
4909
diff
changeset
|
204 |
1972 | 205 #endif // SHARE_VM_GC_IMPLEMENTATION_PARALLELSCAVENGE_PSSCAVENGE_INLINE_HPP |