--- old/src/hotspot/share/gc/g1/g1OopClosures.inline.hpp 2017-09-25 13:06:48.541768190 -0400 +++ new/src/hotspot/share/gc/g1/g1OopClosures.inline.hpp 2017-09-25 13:06:48.113994867 -0400 @@ -195,10 +195,9 @@ } } -template -void G1ParCopyHelper::do_klass_barrier(T* p, oop new_obj) { +void G1ParCopyHelper::do_cld_barrier(oop new_obj) { if (_g1->heap_region_containing(new_obj)->is_young()) { - _scanned_klass->record_modified_oops(); + _scanned_cld->record_modified_oops(); } } @@ -249,8 +248,8 @@ mark_forwarded_object(obj, forwardee); } - if (barrier == G1BarrierKlass) { - do_klass_barrier(p, forwardee); + if (barrier == G1BarrierCLD) { + do_cld_barrier(forwardee); } } else { if (state.is_humongous()) { @@ -267,5 +266,4 @@ } } } - #endif // SHARE_VM_GC_G1_G1OOPCLOSURES_INLINE_HPP