Skip to content
This repository has been archived by the owner on Sep 19, 2023. It is now read-only.


8279011: JFR: JfrChunkWriter incorrectly handles int64_t chunk size a…
Browse files Browse the repository at this point in the history
…s size_t

Reviewed-by: mgronlun
  • Loading branch information
shipilev committed Dec 21, 2021
1 parent 819f9bd commit 467f654
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -207,7 +207,7 @@ int64_t JfrChunkWriter::write_chunk_header_checkpoint(bool flushpoint) {
const u4 checkpoint_size = current_offset() - event_size_offset;
write_padded_at_offset<u4>(checkpoint_size, event_size_offset);
const size_t sz_written = size_written();
const int64_t sz_written = size_written();
write_be_at_offset(sz_written, chunk_size_offset);
return sz_written;
Expand Down

1 comment on commit 467f654

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.