Mercurial > hg > graal-compiler
comparison src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp @ 20445:e5668dcf12e9
8057818: collect allocation context statistics at gc pauses
Reviewed-by: mikael, jmasa
author | jcoomes |
---|---|
date | Wed, 10 Sep 2014 13:01:13 -0700 |
parents | 227a9e5e4b4a |
children | c02ec279b062 |
comparison
equal
deleted
inserted
replaced
20444:fd9feb55481c | 20445:e5668dcf12e9 |
---|---|
3583 (total_collections() % G1SummarizeRSetStatsPeriod == 0)) { | 3583 (total_collections() % G1SummarizeRSetStatsPeriod == 0)) { |
3584 g1_rem_set()->print_periodic_summary_info("Before GC RS summary"); | 3584 g1_rem_set()->print_periodic_summary_info("Before GC RS summary"); |
3585 } | 3585 } |
3586 } | 3586 } |
3587 | 3587 |
3588 void G1CollectedHeap::gc_epilogue(bool full /* Ignored */) { | 3588 void G1CollectedHeap::gc_epilogue(bool full) { |
3589 | 3589 |
3590 if (G1SummarizeRSetStats && | 3590 if (G1SummarizeRSetStats && |
3591 (G1SummarizeRSetStatsPeriod > 0) && | 3591 (G1SummarizeRSetStatsPeriod > 0) && |
3592 // we are at the end of the GC. Total collections has already been increased. | 3592 // we are at the end of the GC. Total collections has already been increased. |
3593 ((total_collections() - 1) % G1SummarizeRSetStatsPeriod == 0)) { | 3593 ((total_collections() - 1) % G1SummarizeRSetStatsPeriod == 0)) { |
3600 COMPILER2_PRESENT(assert(DerivedPointerTable::is_empty(), | 3600 COMPILER2_PRESENT(assert(DerivedPointerTable::is_empty(), |
3601 "derived pointer present")); | 3601 "derived pointer present")); |
3602 // always_do_update_barrier = true; | 3602 // always_do_update_barrier = true; |
3603 | 3603 |
3604 resize_all_tlabs(); | 3604 resize_all_tlabs(); |
3605 allocation_context_stats().update(full); | |
3605 | 3606 |
3606 // We have just completed a GC. Update the soft reference | 3607 // We have just completed a GC. Update the soft reference |
3607 // policy with the new heap occupancy | 3608 // policy with the new heap occupancy |
3608 Universe::update_heap_info_at_gc(); | 3609 Universe::update_heap_info_at_gc(); |
3609 } | 3610 } |