RFR: 8244817: Add configuration logging similar to ZGCs to other GCs

Aleksey Shipilev shade at redhat.com
Mon May 25 12:36:06 UTC 2020


On 5/25/20 2:33 PM, stefan.johansson at oracle.com wrote:
> I had proper here at one point but decided to go with exact since it 
> felt like a better match. I never want K if M can be used. It doesn't 
> necessary mean that it will be the same unit as the user passed, but the 
> largest possible unit:
> -Xmx8192 will print 8G
> -Xmx8180 will print 8180M

Yes, that's what I was trying to say: if user puts -Xmx8g, we better print "8G", so we print in
exact units. It does not apply to system memory size, so we print it in "proper".

> New webrev:
> Full: http://cr.openjdk.java.net/~sjohanss/8244817/02/
> Inc: http://cr.openjdk.java.net/~sjohanss/8244817/01-02/

Looks fine.

-- 
Thanks,
-Aleksey



More information about the hotspot-gc-dev mailing list