< prev index next >

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

Print this page
rev 8816 : [mq]: 8133470-fix-plab-inline
rev 8818 : imported patch 8073013-add-detailed-information-about-plab-memory-usage
rev 8819 : imported patch jon-review-statistics
rev 8820 : imported patch dlindholm-changes
rev 8822 : imported patch move-jfr-event-to-extra-cr
rev 8823 : imported patch 8133530-add-jfr-event-for-evacuation

*** 3502,3511 **** --- 3502,3518 ---- VirtualSpaceSummary heap_summary = create_heap_space_summary(); return G1HeapSummary(heap_summary, used(), eden_used_bytes, eden_capacity_bytes, survivor_used_bytes); } + G1EvacSummary G1CollectedHeap::create_g1_evac_summary(G1EvacStats* stats) { + return G1EvacSummary(stats->allocated(), stats->wasted(), stats->undo_wasted(), + stats->unused(), stats->used(), stats->region_end_waste(), + stats->regions_filled(), stats->direct_allocated(), + stats->failure_used(), stats->failure_waste()); + } + void G1CollectedHeap::trace_heap(GCWhen::Type when, const GCTracer* gc_tracer) { const G1HeapSummary& heap_summary = create_g1_heap_summary(); gc_tracer->report_gc_heap_summary(when, heap_summary); const MetaspaceSummary& metaspace_summary = create_metaspace_summary();
*** 5542,5551 **** --- 5549,5560 ---- } _allocator->release_gc_alloc_regions(evacuation_info); g1_rem_set()->cleanup_after_oops_into_collection_set_do(); + record_obj_copy_mem_stats(); + // Reset and re-enable the hot card cache. // Note the counts for the cards in the regions in the // collection set are reset when the collection set is freed. hot_card_cache->reset_hot_cache(); hot_card_cache->set_use_cache(true);
*** 5572,5581 **** --- 5581,5595 ---- redirty_logged_cards(); COMPILER2_PRESENT(DerivedPointerTable::update_pointers()); } + void G1CollectedHeap::record_obj_copy_mem_stats() { + _gc_tracer_stw->report_evacuation_statistics(create_g1_evac_summary(&_survivor_evac_stats), + create_g1_evac_summary(&_old_evac_stats)); + } + void G1CollectedHeap::free_region(HeapRegion* hr, FreeRegionList* free_list, bool par, bool locked) { assert(!hr->is_free(), "the region should not be free");
< prev index next >