Integrated: 8371587: Final mapping lost in ProcSmapsParser::parse_next
Albert Mingkun Yang
ayang at openjdk.org
Tue Dec 2 13:09:35 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.
>
> The spec of `parse_next` is updated to reflects what its caller expects. The newly added gtest fails without this path.
>
>
> Test: tier1
This pull request has now been integrated.
Changeset: eecba58c
Author: Albert Mingkun Yang <ayang at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/eecba58c6817dbac129c545604d6286dfdcf951f
Stats: 131 lines in 3 files changed: 117 ins; 6 del; 8 mod
8371587: Final mapping lost in ProcSmapsParser::parse_next
Reviewed-by: jsjolen, fandreuzzi
-------------
PR: https://git.openjdk.org/jdk/pull/28225
More information about the hotspot-runtime-dev
mailing list