JDK-8371587 : Final mapping lost in ProcSmapsParser::parse_next
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 26
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2025-11-10
  • Updated: 2025-11-17
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Causes :  
Description
The caller of ProcSmapsParser::parse_next, records a mapping iff the returned value is true.

  while (parser.parse_next(info)) {
    printer.print_single_mapping(info);
    summary.add_mapping(info);
  }

However, the current spec of this method return false on reaching the end of the last mapping, i.e. EOF.

// Starts or continues parsing. Returns true on success,
// false on EOF or on error.

Therefore, the final mapping is never recorded.
Comments
A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/28225 Date: 2025-11-10 21:18:23 +0000
10-11-2025