< prev index next >
src/hotspot/share/gc/g1/g1Allocator.inline.hpp
Print this page
rev 51649 : version 1
rev 52017 : All changes for G1 GC moved from 'combined' repo folder
@@ -95,11 +95,11 @@
if (_archive_check_enabled) {
return;
}
_archive_check_enabled = true;
- size_t length = Universe::heap()->max_capacity();
+ size_t length = static_cast <G1CollectedHeap*>(Universe::heap())->max_reserved_capacity();
_closed_archive_region_map.initialize((HeapWord*)Universe::heap()->base(),
(HeapWord*)Universe::heap()->base() + length,
HeapRegion::GrainBytes);
_open_archive_region_map.initialize((HeapWord*)Universe::heap()->base(),
(HeapWord*)Universe::heap()->base() + length,
< prev index next >