< prev index next >

src/share/vm/gc/shenandoah/shenandoahHeap.cpp

Print this page

        

@@ -142,10 +142,12 @@
 };
 
 jint ShenandoahHeap::initialize() {
   CollectedHeap::pre_initialize();
 
+  BrooksPointer::initial_checks();
+
   size_t init_byte_size = collector_policy()->initial_heap_byte_size();
   size_t max_byte_size = collector_policy()->max_heap_byte_size();
 
   Universe::check_alignment(max_byte_size,
                             ShenandoahHeapRegion::RegionSizeBytes,

@@ -767,11 +769,11 @@
   if (ShenandoahVerify && _numAllocs > 1000000) {
     _numAllocs = 0;
   }
   _numAllocs++;
 #endif
-  HeapWord* filler = allocate_memory(BrooksPointer::word_size() + size, false);
+  HeapWord* filler = allocate_memory(size + BrooksPointer::word_size(), false);
   HeapWord* result = filler + BrooksPointer::word_size();
   if (filler != NULL) {
     BrooksPointer::initialize(oop(result));
     _bytes_allocated_since_cm += size * HeapWordSize;
 
< prev index next >