--- old/src/hotspot/share/gc/g1/g1Allocator.inline.hpp 2018-10-05 11:08:39.335773100 -0700 +++ new/src/hotspot/share/gc/g1/g1Allocator.inline.hpp 2018-10-05 11:08:38.457572700 -0700 @@ -97,7 +97,7 @@ } _archive_check_enabled = true; - size_t length = Universe::heap()->max_capacity(); + size_t length = static_cast (Universe::heap())->max_reserved_capacity(); _closed_archive_region_map.initialize((HeapWord*)Universe::heap()->base(), (HeapWord*)Universe::heap()->base() + length, HeapRegion::GrainBytes);