Pls review 6923123 (XXXS)

Paul Hohensee Paul.Hohensee at Sun.COM
Thu Feb 25 21:34:19 UTC 2010


6923123: Hotspot refuses to start when -Xmx4m or -Xms4m is specified.

Webrev here

http://cr.openjdk.java.net/~phh/6923123/webrev.00/

This fixes a problem with the client heap ergo work that went into 
hs16.  See 6887571
for a description of that work.  The problem occurred because the 
default value for
NewSize was increased from a minimum of 1m on a per-platform basis to 4m 
for all
platforms.  In CollectorPolicy::initialize_size_policy() in 
collectorPolicy.cpp, a check
is made that the minimum heap size be greater than NewSize.  With 
NewSize = 4m
and a heap <= 4m, the check fails and the vm refuses to start.

Setting NewSize back to 1m fixes the problem.  It doesn't change the 
initial heap size
computed by the unified heap ergo calculation in arguments.cpp in either 
set_heap_size()
or set_cms_and_parnew_gc_flags().

Thanks,

Paul




More information about the hotspot-gc-dev mailing list