src/share/vm/gc_implementation/g1/concurrentMark.cpp

Print this page

        

@@ -4109,11 +4109,11 @@
         // the object. It is easy to avoid this. We move the finger by
         // enough to point to the next possible object header (the
         // bitmap knows by how much we need to move it as it knows its
         // granularity).
         assert(_finger < _region_limit, "invariant");
-        HeapWord* new_finger = _nextMarkBitMap->nextWord(_finger);
+        HeapWord* new_finger = _nextMarkBitMap->nextObject(_finger);
         // Check if bitmap iteration was aborted while scanning the last object
         if (new_finger >= _region_limit) {
           giveup_current_region();
         } else {
           move_finger_to(new_finger);