[jdk18] RFR: 8279011: JFR: JfrChunkWriter incorrectly handles int64_t chunk size as size_t
Aleksey Shipilev
shade at openjdk.java.net
Mon Dec 20 17:56:18 UTC 2021
On Mon, 20 Dec 2021 17:43:28 GMT, Markus Grönlund <mgronlun at openjdk.org> wrote:
> Len is only internally derived to ensure the size to be written can be accommodated by the internal buffer system, it does not affect the position of where to write on disk.
All right. Then it must be just uninitialized 32-bit head/tail in 64-bit value. In the bug report, we see `9896023423722239`, which is `0x23286180dc22ff`. Out of which, higher 32-bits `0x232861` looks like a real chunk size, `2304097`. This is similar to the chunk size 64-bit VM reports in the same test.
-------------
PR: https://git.openjdk.java.net/jdk18/pull/50
More information about the hotspot-jfr-dev
mailing list