Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8324598

use mem_unit when working with sysinfo memory and swap related information

XMLWordPrintable

    • b08
    • generic
    • linux

        According to the sysinfo manpage ( https://man7.org/linux/man-pages/man2/sysinfo.2.html ) the memory and swap related entries in the struct sysinfo are given as multiples of mem_unit bytes.
        "In the above structure, sizes of the memory and swap fields are given as multiples of mem_unit bytes."

        This is considered in most parts of the OpenJDK codebase when sysinfo is used but not all; should be added where it is missing.

              mbaesken Matthias Baesken
              mbaesken Matthias Baesken
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: