Skip to content

Commit

Permalink
8298649: JFR: RemoteRecordingStream support for checkpoint event size…
Browse files Browse the repository at this point in the history
…s beyond u4

Reviewed-by: phh
Backport-of: 0eeaf6b219758563712d951b3c6ff160ebeff52d
  • Loading branch information
Ekaterina Vergizova committed Jan 31, 2023
1 parent 9a992ab commit 501a4bf
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -137,7 +137,7 @@ public State next() {
private int typeId;
private int typeIdshift;
private int sizeShift;
private int payLoadSize;
private long payLoadSize;
private int longValueshift;
private int eventFieldSize;
private int lastFlush;
Expand Down Expand Up @@ -222,7 +222,7 @@ private void processNumericValueInEvent() {
private void processEvent() {
int left = currentByteArray.length - index;
if (left >= payLoadSize) {
index += payLoadSize;
index = index + (int)payLoadSize;
payLoadSize = 0;
state = State.EVENT_SIZE;
} else {
Expand Down Expand Up @@ -258,7 +258,7 @@ private void processEventSize() throws IOException {

eventFieldSize++;
byte b = nextByte(false);
long v = (b & 0x7FL);
long v = (b & 0x7F);
payLoadSize += (v << sizeShift);
if (b >= 0) {
if (payLoadSize == 0) {
Expand Down

1 comment on commit 501a4bf

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