< prev index next >
src/share/vm/gc/g1/g1OopClosures.inline.hpp
Print this page
@@ -193,17 +193,10 @@
}
handle_non_cset_obj_common(state, p, obj);
}
}
-template <class T>
-void G1ParCopyHelper::do_klass_barrier(T* p, oop new_obj) {
- if (_g1->heap_region_containing(new_obj)->is_young()) {
- _scanned_klass->record_modified_oops();
- }
-}
-
void G1ParCopyHelper::mark_object(oop obj) {
assert(!_g1->heap_region_containing(obj)->in_collection_set(), "should not mark objects in the CSet");
_cm->mark_in_next_bitmap(obj);
}
@@ -247,13 +240,10 @@
// If the object is self-forwarded we don't need to explicitly
// mark it, the evacuation failure protocol will do so.
mark_forwarded_object(obj, forwardee);
}
- if (barrier == G1BarrierKlass) {
- do_klass_barrier(p, forwardee);
- }
} else {
if (state.is_humongous()) {
_g1->set_humongous_is_live(obj);
}
< prev index next >