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

JFR: RandomAccessFile::readLine emits events for each character

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3 P3
    • 26
    • 25, 26
    • hotspot
    • None
    • jfr
    • In Review

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

              Created:
              Updated: