equal
deleted
inserted
replaced
138 PSScavengeKlassClosure(PSPromotionManager* pm) : _oop_closure(pm) { } |
138 PSScavengeKlassClosure(PSPromotionManager* pm) : _oop_closure(pm) { } |
139 void do_klass(Klass* klass) { |
139 void do_klass(Klass* klass) { |
140 // If the klass has not been dirtied we know that there's |
140 // If the klass has not been dirtied we know that there's |
141 // no references into the young gen and we can skip it. |
141 // no references into the young gen and we can skip it. |
142 |
142 |
143 NOT_PRODUCT(ResourceMark rm); |
|
144 log_develop_trace(gc, scavenge)("PSScavengeKlassClosure::do_klass " PTR_FORMAT ", %s, dirty: %s", |
|
145 p2i(klass), |
|
146 klass->external_name(), |
|
147 klass->has_modified_oops() ? "true" : "false"); |
|
148 |
|
149 if (klass->has_modified_oops()) { |
143 if (klass->has_modified_oops()) { |
150 // Clean the klass since we're going to scavenge all the metadata. |
144 // Clean the klass since we're going to scavenge all the metadata. |
151 klass->clear_modified_oops(); |
145 klass->clear_modified_oops(); |
152 |
146 |
153 // Setup the promotion manager to redirty this klass |
147 // Setup the promotion manager to redirty this klass |