mirror of
https://github.com/openjdk/jdk19u.git
synced 2025-12-10 00:20:40 -06:00
8296733: JFR: File Read event for RandomAccessFile::write(byte[]) is incorrect
Backport-of: ced88a2fd9a35e0e027661ef1f3c5ea3a5fff9e0
This commit is contained in:
parent
647450e75d
commit
55a239c7a6
@ -158,7 +158,7 @@ final class RandomAccessFileInstrumentor {
|
||||
write(b);
|
||||
bytesWritten = b.length;
|
||||
} finally {
|
||||
long duration = EventConfiguration.timestamp();
|
||||
long duration = EventConfiguration.timestamp() - start;
|
||||
if (eventConfiguration.shouldCommit(duration)) {
|
||||
FileWriteEvent.commit(start, duration, path, bytesWritten);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user