RFR: JDK-8280941: os::print_memory_mappings() prints segment preceeding the inclusion range
Thomas Stuefe
stuefe at openjdk.java.net
Tue Feb 1 08:59:25 UTC 2022
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
-------------
Commit messages:
- fix off by one, fix newlines
Changes: https://git.openjdk.java.net/jdk/pull/7289/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=7289&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8280941
Stats: 9 lines in 1 file changed: 1 ins; 2 del; 6 mod
Patch: https://git.openjdk.java.net/jdk/pull/7289.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/7289/head:pull/7289
PR: https://git.openjdk.java.net/jdk/pull/7289
More information about the hotspot-runtime-dev
mailing list