-
Bug
-
Resolution: Fixed
-
P4
-
19
-
b08
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8284172 | 17.0.4 | Thomas Stuefe | P4 | Resolved | Fixed | b01 |
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
```
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
- backported by
-
JDK-8284172 os::print_memory_mappings() prints segment preceeding the inclusion range
-
- Resolved
-
- relates to
-
JDK-8256864 [windows] Improve tracing for mapping errors
-
- Resolved
-
- links to
-
Commit openjdk/jdk17u-dev/1007dedf
-
Commit openjdk/jdk/d1cc5fda
-
Review openjdk/jdk17u-dev/326
-
Review openjdk/jdk/7289
(1 links to)