RFR: 8371587: Final mapping lost in ProcSmapsParser::parse_next

Johan Sjölen jsjolen at openjdk.org
Mon Nov 24 12:14:54 UTC 2025


On Mon, 10 Nov 2025 21:18:23 GMT, Albert Mingkun Yang <ayang at openjdk.org> wrote:

> A simple fix for off-by-one error in parsing `smaps` -- the final mapping is never recorded as we exits the parsing loop too early.
> 
> Test: tier1

Please add a unit test that shows how this change fixes the bug.

-------------

PR Review: https://git.openjdk.org/jdk/pull/28225#pullrequestreview-3500082292


More information about the hotspot-runtime-dev mailing list