--- a/src/hotspot/share/gc/g1/g1CollectedHeap.cpp Thu Mar 14 09:14:20 2019 +0100
+++ b/src/hotspot/share/gc/g1/g1CollectedHeap.cpp Thu Mar 14 09:15:51 2019 +0100
@@ -4796,13 +4796,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);