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

os::print_memory_mappings() prints segment preceeding the inclusion range

    XMLWordPrintable

Details

    • b08

    Backports

      Description

        os::print_memory_mappings() is a helpful little routine to print existing memory mappings within a given range. On Linux, it parses proc/<pid>/maps. But it always prints a segment preceding the start address, e.g. here see the first line:

        ```
        Range [7f92467a3000-7f92467a9000) contains: 7f924679f000-7f92467a3000 rw-p 00000000 00:00 0
        7f92467a3000-7f92467a4000 rwxp 00000000 00:00 0
        7f92467a4000-7f92467a5000 rw-p 00000000 00:00 0
        7f92467a5000-7f92467a6000 rwxp 00000000 00:00 0
        7f92467a6000-7f92467a7000 rw-p 00000000 00:00 0
        7f92467a7000-7f92467a8000 rwxp 00000000 00:00 0
        7f92467a8000-7f92467a9000 rw-p 00000000 00:00 0
        ```

        and it should also precede the first line with a newline

        Attachments

          Issue Links

            Activity

              People

                stuefe Thomas Stuefe
                stuefe Thomas Stuefe
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: