--- old/src/hotspot/share/gc/g1/g1CollectedHeap.cpp 2019-03-11 22:56:15.446591178 +0100 +++ new/src/hotspot/share/gc/g1/g1CollectedHeap.cpp 2019-03-11 22:56:14.842581385 +0100 @@ -4798,13 +4798,6 @@ void do_oop(narrowOop* p) { do_oop_work(p); } }; -// Returns true if the reference points to an object that -// can move in an incremental collection. -bool G1CollectedHeap::is_scavengable(oop obj) { - HeapRegion* hr = heap_region_containing(obj); - return !hr->is_pinned(); -} - void G1CollectedHeap::register_nmethod(nmethod* nm) { guarantee(nm != NULL, "sanity"); RegisterNMethodOopClosure reg_cl(this, nm);