Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8176041

Optimize handling of comment lines in Properties$LineReader.readLine

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9
    • Component/s: core-libs
    • Subcomponent:
    • Resolved In Build:
      b160
    • Verification:
      Not verified

      Backports

        Description

        The properties line reader has some relevance to startup, e.g., when reading the java.security file, and as more documentation content has been added to this file it has been made apparent that the handling of comment lines is inefficient due to treating every character after a comment line marker ('#' or '!') as any other character (writes it to an internal buffer etc) when it could trigger a fast-path consuming the rest of the line.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  redestad Claes Redestad
                  Reporter:
                  redestad Claes Redestad
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: