hotspot/src/share/vm/gc/g1/g1CollectedHeap.hpp
changeset 46517 14de3e5151a9
parent 46384 dacebddcdea0
child 46564 0ec329b23bbf
--- a/hotspot/src/share/vm/gc/g1/g1CollectedHeap.hpp	Fri Jun 02 05:24:28 2017 -0400
+++ b/hotspot/src/share/vm/gc/g1/g1CollectedHeap.hpp	Fri Jun 02 13:45:15 2017 +0200
@@ -1348,7 +1348,6 @@
   // bitmap off to the side.
   void doConcurrentMark();
 
-  bool isMarkedPrev(oop obj) const;
   bool isMarkedNext(oop obj) const;
 
   // Determine if an object is dead, given the object and also
@@ -1357,8 +1356,7 @@
   // is not marked, and c) it is not in an archive region.
   bool is_obj_dead(const oop obj, const HeapRegion* hr) const {
     return
-      !hr->obj_allocated_since_prev_marking(obj) &&
-      !isMarkedPrev(obj) &&
+      hr->is_obj_dead(obj, _cm->prevMarkBitMap()) &&
       !hr->is_archive();
   }