提交 19a4f2d9 编写于 作者: A andrew

Merge

...@@ -376,7 +376,7 @@ G1YoungGenSizer::G1YoungGenSizer() : _sizer_kind(SizerDefaults), _adaptive_size( ...@@ -376,7 +376,7 @@ G1YoungGenSizer::G1YoungGenSizer() : _sizer_kind(SizerDefaults), _adaptive_size(
MAX2((uint) (MaxNewSize / HeapRegion::GrainBytes), MAX2((uint) (MaxNewSize / HeapRegion::GrainBytes),
1U); 1U);
_sizer_kind = SizerMaxAndNewSize; _sizer_kind = SizerMaxAndNewSize;
_adaptive_size = _min_desired_young_length == _max_desired_young_length; _adaptive_size = _min_desired_young_length != _max_desired_young_length;
} else { } else {
_sizer_kind = SizerNewSizeOnly; _sizer_kind = SizerNewSizeOnly;
} }
......
...@@ -133,7 +133,11 @@ private: ...@@ -133,7 +133,11 @@ private:
SizerKind _sizer_kind; SizerKind _sizer_kind;
uint _min_desired_young_length; uint _min_desired_young_length;
uint _max_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; bool _adaptive_size;
uint calculate_default_min_length(uint new_number_of_heap_regions); uint calculate_default_min_length(uint new_number_of_heap_regions);
uint calculate_default_max_length(uint new_number_of_heap_regions); uint calculate_default_max_length(uint new_number_of_heap_regions);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册