8296733: JFR: File Read event for RandomAccessFile::write(byte[]) is incorrect
Reviewed-by: clanger, mgronlun
This commit is contained in:
parent
87b809a2cb
commit
ced88a2fd9
@ -153,7 +153,7 @@ final class RandomAccessFileInstrumentor {
|
|||||||
write(b);
|
write(b);
|
||||||
bytesWritten = b.length;
|
bytesWritten = b.length;
|
||||||
} finally {
|
} finally {
|
||||||
long duration = EventConfiguration.timestamp();
|
long duration = EventConfiguration.timestamp() - start;
|
||||||
if (eventConfiguration.shouldCommit(duration)) {
|
if (eventConfiguration.shouldCommit(duration)) {
|
||||||
FileWriteEvent.commit(start, duration, path, bytesWritten);
|
FileWriteEvent.commit(start, duration, path, bytesWritten);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user