< prev index next >

src/share/vm/gc/g1/g1Allocator.inline.hpp

Print this page
rev 12854 : [mq]: gcinterface.patch

@@ -57,13 +57,13 @@
 
 // Create the _archive_region_map which is used to identify archive objects.
 inline void G1ArchiveAllocator::enable_archive_object_check() {
   assert(!_archive_check_enabled, "archive range check already enabled");
   _archive_check_enabled = true;
-  size_t length = Universe::heap()->max_capacity();
-  _archive_region_map.initialize((HeapWord*)Universe::heap()->base(),
-                                 (HeapWord*)Universe::heap()->base() + length,
+  size_t length = GC::gc()->heap()->max_capacity();
+  _archive_region_map.initialize((HeapWord*) GC::gc()->heap()->base(),
+                                 (HeapWord*) GC::gc()->heap()->base() + length,
                                  HeapRegion::GrainBytes);
 }
 
 // Set the regions containing the specified address range as archive/non-archive.
 inline void G1ArchiveAllocator::set_range_archive(MemRegion range, bool is_archive) {
< prev index next >