Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
8301842: JFR: increase checkpoint event size for stacktrace and strin…
…g pool

Backport-of: 7dfe75cf553193faf709cff6b8b2505680d7cebc
  • Loading branch information
Ekaterina Vergizova committed Feb 16, 2023
1 parent cf5490b commit fb6d6fe
Showing 1 changed file with 4 additions and 4 deletions.
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

1 comment on commit fb6d6fe

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