RFR: 8261710: SA DSO objects have sizes that are too large [v4]
Yasumasa Suenaga
ysuenaga at openjdk.java.net
Sat Feb 20 04:05:37 UTC 2021
On Fri, 19 Feb 2021 20:59:29 GMT, Chris Plummer <cjplummer at openjdk.org> 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
More information about the serviceability-dev
mailing list