< prev index next >

src/share/vm/gc/parallel/psScavenge.cpp

Print this page
rev 8545 : 7012980: PSOldGen is increased if there is no space in Metaspace
Reviewed-by:
* * *
imported patch is_system_gc

*** 288,299 **** heap->increment_total_collections(); AdaptiveSizePolicyOutput(size_policy, heap->total_collections()); ! if (!GCCause::is_user_requested_gc(gc_cause) || ! UseAdaptiveSizePolicyWithSystemGC) { // Gather the feedback data for eden occupancy. young_gen->eden_space()->accumulate_statistics(); } if (ZapUnusedHeapArea) { --- 288,298 ---- heap->increment_total_collections(); AdaptiveSizePolicyOutput(size_policy, heap->total_collections()); ! if (AdaptiveSizePolicy::should_update_eden_stats(gc_cause)) { // Gather the feedback data for eden occupancy. young_gen->eden_space()->accumulate_statistics(); } if (ZapUnusedHeapArea) {
*** 557,569 **** // Do call at minor collections? // Don't check if the size_policy is ready at this // level. Let the size_policy check that internally. if (UseAdaptiveGenerationSizePolicyAtMinorCollection && ! ((gc_cause != GCCause::_java_lang_system_gc) || ! UseAdaptiveSizePolicyWithSystemGC)) { ! // Calculate optimal free space amounts assert(young_gen->max_size() > young_gen->from_space()->capacity_in_bytes() + young_gen->to_space()->capacity_in_bytes(), "Sizes of space in young gen are out-of-bounds"); --- 556,566 ---- // Do call at minor collections? // Don't check if the size_policy is ready at this // level. Let the size_policy check that internally. if (UseAdaptiveGenerationSizePolicyAtMinorCollection && ! (AdaptiveSizePolicy::should_update_eden_stats(gc_cause))) { // Calculate optimal free space amounts assert(young_gen->max_size() > young_gen->from_space()->capacity_in_bytes() + young_gen->to_space()->capacity_in_bytes(), "Sizes of space in young gen are out-of-bounds");
< prev index next >