81 if (NewSize > MaxMemoryForYoung) {
82 if (FLAG_IS_CMDLINE(NewSize)) {
83 log_warning(gc, ergo)("Setting NewSize to " SIZE_FORMAT " based on dram available (calculation = align(%s))",
84 MaxMemoryForYoung, calc_str.buffer());
85 }
86 NewSize = MaxMemoryForYoung;
87 }
88
89 // After setting new size flags, call base class initialize_flags()
90 G1CollectorPolicy::initialize_flags();
91 }
92
93 size_t G1HeterogeneousCollectorPolicy::reasonable_max_memory_for_young() {
94 return MaxMemoryForYoung;
95 }
96
97 size_t G1HeterogeneousCollectorPolicy::heap_reserved_size_bytes() const {
98 return 2 * _max_heap_byte_size;
99 }
100
101 bool G1HeterogeneousCollectorPolicy::is_hetero_heap() const {
102 return true;
103 }
|
81 if (NewSize > MaxMemoryForYoung) {
82 if (FLAG_IS_CMDLINE(NewSize)) {
83 log_warning(gc, ergo)("Setting NewSize to " SIZE_FORMAT " based on dram available (calculation = align(%s))",
84 MaxMemoryForYoung, calc_str.buffer());
85 }
86 NewSize = MaxMemoryForYoung;
87 }
88
89 // After setting new size flags, call base class initialize_flags()
90 G1CollectorPolicy::initialize_flags();
91 }
92
93 size_t G1HeterogeneousCollectorPolicy::reasonable_max_memory_for_young() {
94 return MaxMemoryForYoung;
95 }
96
97 size_t G1HeterogeneousCollectorPolicy::heap_reserved_size_bytes() const {
98 return 2 * _max_heap_byte_size;
99 }
100
101 bool G1HeterogeneousCollectorPolicy::is_heterogeneous_heap() const {
102 return true;
103 }
|