Final mapping lost in ProcSmapsParser::parse_next

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 26
    • Affects Version/s: 26
    • Component/s: hotspot
    • b27

      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.

            Assignee:
            Albert Yang
            Reporter:
            Albert Yang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: