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

Albert Mingkun Yang ayang at openjdk.org
Tue Dec 2 13:09:33 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

Thanks for review.

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

PR Comment: https://git.openjdk.org/jdk/pull/28225#issuecomment-3601938896


More information about the hotspot-runtime-dev mailing list