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.
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.
- caused by
-
JDK-8322475 Extend printing for System.map
-
- Resolved
-
- links to
-
Review(master)
openjdk/jdk/28225