--- a/src/hotspot/share/gc/shenandoah/shenandoahConcurrentMark.inline.hpp Wed May 29 09:25:20 2019 +0200
+++ b/src/hotspot/share/gc/shenandoah/shenandoahConcurrentMark.inline.hpp Wed May 29 12:01:21 2019 +0200
@@ -25,7 +25,6 @@
#define SHARE_GC_SHENANDOAH_SHENANDOAHCONCURRENTMARK_INLINE_HPP
#include "gc/shenandoah/shenandoahAsserts.hpp"
-#include "gc/shenandoah/shenandoahForwarding.hpp"
#include "gc/shenandoah/shenandoahBarrierSet.inline.hpp"
#include "gc/shenandoah/shenandoahConcurrentMark.hpp"
#include "gc/shenandoah/shenandoahMarkingContext.inline.hpp"
@@ -70,7 +69,7 @@
inline void ShenandoahConcurrentMark::count_liveness(jushort* live_data, oop obj) {
size_t region_idx = _heap->heap_region_index_containing(obj);
ShenandoahHeapRegion* region = _heap->get_region(region_idx);
- size_t size = obj->size() + ShenandoahForwarding::word_size();
+ size_t size = obj->size();
if (!region->is_humongous_start()) {
assert(!region->is_humongous(), "Cannot have continuations here");