On Fri, 19 Feb 2021 20:59:29 GMT, Chris Plummer <[email protected]> wrote:
> BTW, one way to test these changes might be to do a `clhsdb pmap` and then do > a `findpc` on the last address of each library's map (should find a symbol) > and the first address after the map (should not find a symbol unless that > happens to be the start of the next mapped library). I'm not sure if this > will always work. It's possible that no symbol covers the very end of the > map, especially due to page alignment. Maybe try the first address of the > last page then. I thought similar tests, but I don't want to do so because it might fail as you said. As an option, we can add the test to to compare address range of shared libraries between `clhsdb pmap` and `/proc/<PID>/maps`. But I can add it for Linux only, so I'm not sure it is worth to add. ------------- PR: https://git.openjdk.java.net/jdk/pull/2563
