8286392: Address possibly lossy conversions in jdk.jfr

Reviewed-by: mgronlun
This commit is contained in:
Erik Gahlin 2022-05-11 12:47:59 +00:00
parent f628966916
commit 9ac52b0c2e

View File

@ -731,7 +731,7 @@ public final class PlatformRecording implements AutoCloseable {
result = reduceFromEnd(maxSize, result);
}
}
int size = 0;
long size = 0;
for (RepositoryChunk r : result) {
size += r.getSize();
r.use();