src/hotspot/share/gc/shenandoah/shenandoahHeap.cpp
changeset 54606 24eb7720919c
parent 54605 f6f95cb8643e
child 54678 93f09ca4a7f8
--- a/src/hotspot/share/gc/shenandoah/shenandoahHeap.cpp	Wed Apr 24 11:39:56 2019 +0200
+++ b/src/hotspot/share/gc/shenandoah/shenandoahHeap.cpp	Wed Apr 24 11:40:04 2019 +0200
@@ -259,7 +259,7 @@
 
   _regions = NEW_C_HEAP_ARRAY(ShenandoahHeapRegion*, _num_regions, mtGC);
   _free_set = new ShenandoahFreeSet(this, _num_regions);
-  _collection_set = new ShenandoahCollectionSet(this, (HeapWord*)sh_rs.base());
+  _collection_set = new ShenandoahCollectionSet(this, sh_rs.base(), sh_rs.size());
 
   {
     ShenandoahHeapLocker locker(lock());