--- a/hotspot/src/share/vm/gc/parallel/psParallelCompact.cpp Tue Jul 07 18:16:06 2015 +0000
+++ b/hotspot/src/share/vm/gc/parallel/psParallelCompact.cpp Wed Apr 15 11:30:36 2015 -0700
@@ -2089,8 +2089,7 @@
// Don't check if the size_policy is ready here. Let
// the size_policy check that internally.
if (UseAdaptiveGenerationSizePolicyAtMajorCollection &&
- (!GCCause::is_user_requested_gc(gc_cause) ||
- UseAdaptiveSizePolicyWithSystemGC)) {
+ AdaptiveSizePolicy::should_update_promo_stats(gc_cause)) {
// Swap the survivor spaces if from_space is empty. The
// resize_young_gen() called below is normally used after
// a successful young GC and swapping of survivor spaces;