mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
7012980: PSOldGen is increased if there is no space in Metaspace
Reviewed-by: tschatzl, tbenson
This commit is contained in:
parent
bd52f0a2ef
commit
48ed80d136
6 changed files with 46 additions and 11 deletions
|
@ -272,8 +272,7 @@ bool PSMarkSweep::invoke_no_policy(bool clear_all_softrefs) {
|
|||
// 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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue