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.
- links to
-
Review(master) openjdk/jdk/26210