changeset 9255:8c0733543544 jdk8u252-b00

Merge
author andrew
date Sun, 08 Dec 2019 22:40:44 +0000
parents 371da86379cf 65749db89e61
children 5bd0e0bcb152 a0b9b4d15694
files
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/gc_implementation/g1/g1CollectorPolicy.cpp	Wed Dec 04 16:24:15 2019 +0000
+++ b/src/share/vm/gc_implementation/g1/g1CollectorPolicy.cpp	Sun Dec 08 22:40:44 2019 +0000
@@ -376,7 +376,7 @@
                              MAX2((uint) (MaxNewSize / HeapRegion::GrainBytes),
                                   1U);
       _sizer_kind = SizerMaxAndNewSize;
-      _adaptive_size = _min_desired_young_length == _max_desired_young_length;
+      _adaptive_size = _min_desired_young_length != _max_desired_young_length;
     } else {
       _sizer_kind = SizerNewSizeOnly;
     }
--- a/src/share/vm/gc_implementation/g1/g1CollectorPolicy.hpp	Wed Dec 04 16:24:15 2019 +0000
+++ b/src/share/vm/gc_implementation/g1/g1CollectorPolicy.hpp	Sun Dec 08 22:40:44 2019 +0000
@@ -133,7 +133,11 @@
   SizerKind _sizer_kind;
   uint _min_desired_young_length;
   uint _max_desired_young_length;
+
+  // False when using a fixed young generation size due to command-line options,
+  // true otherwise.
   bool _adaptive_size;
+
   uint calculate_default_min_length(uint new_number_of_heap_regions);
   uint calculate_default_max_length(uint new_number_of_heap_regions);