RFR: 8176573: Do not use FLAG_SET_ERGO to update MaxRAM for emulated client

Jamsheed C m jamsheed.c.m at oracle.com
Mon Mar 13 18:16:12 UTC 2017


Request for review for a small change:

Issue: setting MaxRAM using FLAG_SET_ERGO doesn't work well with 
set_heap_size based on available physical memory[1]

Fix: use FLAG_SET_DEFAULT to update MaxRAM.

bug: https://bugs.openjdk.java.net/browse/JDK-8176573

webrev: http://cr.openjdk.java.net/~jcm/8176573/webrev.00/

testing: jprt

Best Regards,



void Arguments::set_heap_size() {
   julong phys_mem =
     FLAG_IS_DEFAULT(MaxRAM) ? MIN2(os::physical_memory(), (julong)MaxRAM)
                             : (julong)MaxRAM;

More information about the hotspot-compiler-dev mailing list