< prev index next >

src/hotspot/share/gc/g1/g1CollectedHeap.cpp

Print this page
rev 56111 : [mq]: fix


1670 
1671   initialize_reserved_region((HeapWord*)heap_rs.base(), (HeapWord*)(heap_rs.base() + heap_rs.size()));
1672 
1673   // Create the barrier set for the entire reserved region.
1674   G1CardTable* ct = new G1CardTable(reserved_region());
1675   ct->initialize();
1676   G1BarrierSet* bs = new G1BarrierSet(ct);
1677   bs->initialize();
1678   assert(bs->is_a(BarrierSet::G1BarrierSet), "sanity");
1679   BarrierSet::set_barrier_set(bs);
1680   _card_table = ct;
1681 
1682   G1BarrierSet::satb_mark_queue_set().initialize(this,
1683                                                  &bs->satb_mark_queue_buffer_allocator(),
1684                                                  G1SATBProcessCompletedThreshold,
1685                                                  G1SATBBufferEnqueueingThresholdPercent);
1686 
1687   // process_completed_buffers_threshold and max_completed_buffers are updated
1688   // later, based on the concurrent refinement object.
1689   G1BarrierSet::dirty_card_queue_set().initialize(DirtyCardQ_CBL_mon,
1690                                                   &bs->dirty_card_queue_buffer_allocator(),
1691                                                   true); // init_free_ids
1692 
1693   // Create the hot card cache.
1694   _hot_card_cache = new G1HotCardCache(this);
1695 
1696   // Carve out the G1 part of the heap.
1697   ReservedSpace g1_rs = heap_rs.first_part(reserved_byte_size);
1698   size_t page_size = actual_reserved_page_size(heap_rs);
1699   G1RegionToSpaceMapper* heap_storage =
1700     G1RegionToSpaceMapper::create_heap_mapper(g1_rs,
1701                                               g1_rs.size(),
1702                                               page_size,
1703                                               HeapRegion::GrainBytes,
1704                                               1,
1705                                               mtJavaHeap);
1706   if(heap_storage == NULL) {
1707     vm_shutdown_during_initialization("Could not initialize G1 heap");
1708     return JNI_ERR;
1709   }
1710 
1711   os::trace_page_sizes("Heap",




1670 
1671   initialize_reserved_region((HeapWord*)heap_rs.base(), (HeapWord*)(heap_rs.base() + heap_rs.size()));
1672 
1673   // Create the barrier set for the entire reserved region.
1674   G1CardTable* ct = new G1CardTable(reserved_region());
1675   ct->initialize();
1676   G1BarrierSet* bs = new G1BarrierSet(ct);
1677   bs->initialize();
1678   assert(bs->is_a(BarrierSet::G1BarrierSet), "sanity");
1679   BarrierSet::set_barrier_set(bs);
1680   _card_table = ct;
1681 
1682   G1BarrierSet::satb_mark_queue_set().initialize(this,
1683                                                  &bs->satb_mark_queue_buffer_allocator(),
1684                                                  G1SATBProcessCompletedThreshold,
1685                                                  G1SATBBufferEnqueueingThresholdPercent);
1686 
1687   // process_completed_buffers_threshold and max_completed_buffers are updated
1688   // later, based on the concurrent refinement object.
1689   G1BarrierSet::dirty_card_queue_set().initialize(DirtyCardQ_CBL_mon,
1690                                                   &bs->dirty_card_queue_buffer_allocator());

1691 
1692   // Create the hot card cache.
1693   _hot_card_cache = new G1HotCardCache(this);
1694 
1695   // Carve out the G1 part of the heap.
1696   ReservedSpace g1_rs = heap_rs.first_part(reserved_byte_size);
1697   size_t page_size = actual_reserved_page_size(heap_rs);
1698   G1RegionToSpaceMapper* heap_storage =
1699     G1RegionToSpaceMapper::create_heap_mapper(g1_rs,
1700                                               g1_rs.size(),
1701                                               page_size,
1702                                               HeapRegion::GrainBytes,
1703                                               1,
1704                                               mtJavaHeap);
1705   if(heap_storage == NULL) {
1706     vm_shutdown_during_initialization("Could not initialize G1 heap");
1707     return JNI_ERR;
1708   }
1709 
1710   os::trace_page_sizes("Heap",


< prev index next >