RFR: 8371587: Final mapping lost in ProcSmapsParser::parse_next [v3]

Johan Sjölen jsjolen at openjdk.org
Mon Dec 1 14:39:12 UTC 2025


On Mon, 1 Dec 2025 14:35:42 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
>
> Albert Mingkun Yang has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains six additional commits since the last revision:
> 
>  - Merge branch 'master' into smap-parser
>  - review
>  - copyright-header
>  - review
>  - Merge branch 'master' into smap-parser
>  - smap-parser

Marked as reviewed by jsjolen (Reviewer).

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

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


More information about the hotspot-runtime-dev mailing list