< prev index next >

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

Print this page

        

*** 142,151 **** --- 142,153 ---- }; 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,777 **** if (ShenandoahVerify && _numAllocs > 1000000) { _numAllocs = 0; } _numAllocs++; #endif ! HeapWord* filler = allocate_memory(BrooksPointer::word_size() + size, false); HeapWord* result = filler + BrooksPointer::word_size(); if (filler != NULL) { BrooksPointer::initialize(oop(result)); _bytes_allocated_since_cm += size * HeapWordSize; --- 769,779 ---- if (ShenandoahVerify && _numAllocs > 1000000) { _numAllocs = 0; } _numAllocs++; #endif ! 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 >