< prev index next >

src/share/vm/gc/shared/adaptiveSizePolicy.hpp

Print this page
rev 8363 : 7012980: PSOldGen is increased if there is no space in Metaspace
Reviewed-by:

@@ -485,10 +485,22 @@
                                size_t max_eden_size,
                                bool   is_full_gc,
                                GCCause::Cause gc_cause,
                                CollectorPolicy* collector_policy);
 
+  static bool should_update_promo_stats(GCCause::Cause cause) {
+    return ((cause == GCCause::_java_lang_system_gc  &&
+               UseAdaptiveSizePolicyWithSystemGC) ||
+            GCCause::is_tenured_allocation_failure_gc(cause));
+  }
+
+  static bool should_update_eden_stats(GCCause::Cause cause) {
+    return ((cause == GCCause::_java_lang_system_gc  &&
+               UseAdaptiveSizePolicyWithSystemGC) ||
+            GCCause::is_allocation_failure_gc(cause));
+  }
+
   // Printing support
   virtual bool print_adaptive_size_policy_on(outputStream* st) const;
   bool print_adaptive_size_policy_on(outputStream* st,
                                      uint tenuring_threshold) const;
 };
< prev index next >