8261251: Shenandoah: Use object size for full GC humongous compaction

Reviewed-by: aph, shade
This commit is contained in:
Roman Kennke 2021-02-08 08:01:35 +00:00
parent d45343ea51
commit deb0544ff3

View File

@ -958,7 +958,7 @@ void ShenandoahFullGC::compact_humongous_objects() {
Copy::aligned_conjoint_words(heap->get_region(old_start)->bottom(),
heap->get_region(new_start)->bottom(),
ShenandoahHeapRegion::region_size_words()*num_regions);
words_size);
oop new_obj = oop(heap->get_region(new_start)->bottom());
new_obj->init_mark();