Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JDK-8301842: JFR: increase checkpoint event size for stacktrace and string pool #12432

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/hotspot/share/jfr/recorder/service/jfrRecorderService.cpp
Expand Up @@ -185,16 +185,16 @@ class WriteContent : public StackObj {
return (u4) _content.elements();
}

u4 size() const {
return (u4)(end_offset() - start_offset());
u8 size() const {
return (u8)(end_offset() - start_offset());
}

void write_elements(int64_t offset) {
_cw.write_padded_at_offset<u4>(elements(), offset);
}

void write_size() {
_cw.write_padded_at_offset<u4>(size(), start_offset());
_cw.write_padded_at_offset<u8>(size(), start_offset());
}

void set_last_checkpoint() {
Expand All @@ -209,7 +209,7 @@ class WriteContent : public StackObj {
static int64_t write_checkpoint_event_prologue(JfrChunkWriter& cw, u8 type_id) {
const int64_t last_cp_offset = cw.last_checkpoint_offset();
const int64_t delta_to_last_checkpoint = 0 == last_cp_offset ? 0 : last_cp_offset - cw.current_offset();
cw.reserve(sizeof(u4));
cw.reserve(sizeof(u8));
cw.write<u8>(EVENT_CHECKPOINT);
cw.write(JfrTicks::now());
cw.write<u8>(0); // duration
Expand Down