Do not use FLAG_SET_ERGO to update MaxRAM for emulated client

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P2
    • 9
    • Affects Version/s: 9, 10
    • Component/s: hotspot
    • b163
    • Verified

        setting MaxRAM FLAG_SET_ERGO affects Arguments::set_heap_size inappropriately,

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

        so, do not use FLAG_SET_ERGO to update MaxRAM for emulated client

              Assignee:
              Jamsheed C M (Inactive)
              Reporter:
              Jamsheed C M (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: