Final mapping lost in ProcSmapsParser::parse_next

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • None
    • Affects Version/s: None
    • Component/s: hotspot
    • None

      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:
            2 Start watching this issue

              Created:
              Updated: