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

JFR: RandomAccessFile::readLine emits events for each character

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 26
    • 25, 26
    • hotspot
    • jfr
    • b07

        RandomAccessFile is instrumented to emit FileRead events when a user calls a read method, but if the user calls the readLine() method, an event is emitted for every character. This leads to unnecessary overhead, especially if the line is very long. Even if the threshold is not met, two timestamps need to be taken for every character.

              egahlin Erik Gahlin
              egahlin Erik Gahlin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: