Request for review: 7196080: assert(max_heap >= InitialHeapSize) in arguments.cpp
jon.masamitsu at oracle.com
Thu Mar 7 13:10:03 PST 2013
As per our discussion feel free to delete both
On 03/07/13 08:13, Jon Masamitsu wrote:
> The original assertion seems a worthwhile one
> (i.e., the maximum heap size is >= to the
> initial heap size) to enforce. The CR says the problem
> that not everything has been page aligned. Is
> the latter not true?
> On 03/06/13 14:33, Tao Mao wrote:
>> 7196080: assert(max_heap >= InitialHeapSize) in arguments.cpp
>> 1. inequality doesn't transfer here.
>> X >= align_down(X)
>> X >= I
>> altogether, cannot infer that align_down(X) >= I. Simple math!
>> So, I have removed the original assertion "max_heap >= InitialHeapSize".
>> 2. It's reasonable to check an extra assertion "max_heap > =
>> OldSize", following the comment above the assertions.
More information about the hotspot-gc-dev