Mercurial > hg > openjdk > jdk8u > hotspot
changeset 9162:4937bafbb2f8
8216559: [JFR] Native libraries not correctly parsed from /proc/self/maps
Summary: Use %7s for the dev scan format as major:minor may be up to that length
Reviewed-by: mgronlun, jwilhelm
author | sgehwolf |
---|---|
date | Fri, 11 Jan 2019 13:34:57 +0100 |
parents | 3bdc0b789595 |
children | 8689c69d5c19 |
files | src/os/linux/vm/os_linux.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/os/linux/vm/os_linux.cpp Fri Jan 11 23:32:52 2019 +0900 +++ b/src/os/linux/vm/os_linux.cpp Fri Jan 11 13:34:57 2019 +0100 @@ -2162,7 +2162,7 @@ char name[PATH_MAX + 1]; // Parse fields from line - sscanf(line, UINT64_FORMAT_X "-" UINT64_FORMAT_X " %4s " UINT64_FORMAT_X " %5s " INT64_FORMAT " %s", + sscanf(line, UINT64_FORMAT_X "-" UINT64_FORMAT_X " %4s " UINT64_FORMAT_X " %7s " INT64_FORMAT " %s", &base, &top, permissions, &offset, device, &inode, name); // Filter by device id '00:00' so that we only get file system mapped files.