src/share/vm/gc_implementation/parallelScavenge/psScavenge.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File hotspot Sdiff src/share/vm/gc_implementation/parallelScavenge

src/share/vm/gc_implementation/parallelScavenge/psScavenge.cpp

Print this page
rev 5732 : [mq]: comments2


 541          gclog_or_tty->cr();
 542          gclog_or_tty->print_cr("Desired survivor size " SIZE_FORMAT " bytes, new threshold %u (max %u)",
 543                                 size_policy->calculated_survivor_size_in_bytes(),
 544                                 _tenuring_threshold, MaxTenuringThreshold);
 545        }
 546 
 547         if (UsePerfData) {
 548           PSGCAdaptivePolicyCounters* counters = heap->gc_policy_counters();
 549           counters->update_tenuring_threshold(_tenuring_threshold);
 550           counters->update_survivor_size_counters();
 551         }
 552 
 553         // Do call at minor collections?
 554         // Don't check if the size_policy is ready at this
 555         // level.  Let the size_policy check that internally.
 556         if (UseAdaptiveSizePolicy &&
 557             UseAdaptiveGenerationSizePolicyAtMinorCollection &&
 558             ((gc_cause != GCCause::_java_lang_system_gc) ||
 559               UseAdaptiveSizePolicyWithSystemGC)) {
 560 
 561           // Calculate optimial free space amounts
 562           assert(young_gen->max_size() >
 563             young_gen->from_space()->capacity_in_bytes() +
 564             young_gen->to_space()->capacity_in_bytes(),
 565             "Sizes of space in young gen are out-of-bounds");
 566 
 567           size_t young_live = young_gen->used_in_bytes();
 568           size_t eden_live = young_gen->eden_space()->used_in_bytes();
 569           size_t cur_eden = young_gen->eden_space()->capacity_in_bytes();
 570           size_t max_old_gen_size = old_gen->max_gen_size();
 571           size_t max_eden_size = young_gen->max_size() -
 572             young_gen->from_space()->capacity_in_bytes() -
 573             young_gen->to_space()->capacity_in_bytes();
 574 
 575           // Used for diagnostics
 576           size_policy->clear_generation_free_space_flags();
 577 
 578           size_policy->compute_eden_space_size(young_live,
 579                                                eden_live,
 580                                                cur_eden,
 581                                                max_eden_size,




 541          gclog_or_tty->cr();
 542          gclog_or_tty->print_cr("Desired survivor size " SIZE_FORMAT " bytes, new threshold %u (max %u)",
 543                                 size_policy->calculated_survivor_size_in_bytes(),
 544                                 _tenuring_threshold, MaxTenuringThreshold);
 545        }
 546 
 547         if (UsePerfData) {
 548           PSGCAdaptivePolicyCounters* counters = heap->gc_policy_counters();
 549           counters->update_tenuring_threshold(_tenuring_threshold);
 550           counters->update_survivor_size_counters();
 551         }
 552 
 553         // Do call at minor collections?
 554         // Don't check if the size_policy is ready at this
 555         // level.  Let the size_policy check that internally.
 556         if (UseAdaptiveSizePolicy &&
 557             UseAdaptiveGenerationSizePolicyAtMinorCollection &&
 558             ((gc_cause != GCCause::_java_lang_system_gc) ||
 559               UseAdaptiveSizePolicyWithSystemGC)) {
 560 
 561           // Calculate optimal free space amounts
 562           assert(young_gen->max_size() >
 563             young_gen->from_space()->capacity_in_bytes() +
 564             young_gen->to_space()->capacity_in_bytes(),
 565             "Sizes of space in young gen are out-of-bounds");
 566 
 567           size_t young_live = young_gen->used_in_bytes();
 568           size_t eden_live = young_gen->eden_space()->used_in_bytes();
 569           size_t cur_eden = young_gen->eden_space()->capacity_in_bytes();
 570           size_t max_old_gen_size = old_gen->max_gen_size();
 571           size_t max_eden_size = young_gen->max_size() -
 572             young_gen->from_space()->capacity_in_bytes() -
 573             young_gen->to_space()->capacity_in_bytes();
 574 
 575           // Used for diagnostics
 576           size_policy->clear_generation_free_space_flags();
 577 
 578           size_policy->compute_eden_space_size(young_live,
 579                                                eden_live,
 580                                                cur_eden,
 581                                                max_eden_size,


src/share/vm/gc_implementation/parallelScavenge/psScavenge.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File