Skip to content

Commit

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

Backport-of: 467f654916764751746934f80877d49a5f107194
  • Loading branch information
shipilev committed Jan 3, 2022
1 parent 0a538a0 commit 8ce6877
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);
set_last_checkpoint_offset(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 8ce6877

@openjdk-notifier
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.