Skip to content

Commit

Permalink
Merge pull request #20634 from pshipton/jfr2
Browse files Browse the repository at this point in the history
(0.49) Fix conditon in JFR buffer test
  • Loading branch information
tajila authored Nov 19, 2024
2 parents 609cd7d + dbd1615 commit f7ddf02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runtime/vm/jfr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ flushBufferToGlobal(J9VMThread *currentThread, J9VMThread *flushThread)
UDATA bufferSize = flushThread->jfrBuffer.bufferCurrent - flushThread->jfrBuffer.bufferStart;
bool success = true;

if (areJFRBuffersReadyForWrite(currentThread)) {
if (!areJFRBuffersReadyForWrite(currentThread)) {
goto done;
}

Expand Down Expand Up @@ -302,7 +302,7 @@ reserveBuffer(J9VMThread *currentThread, UDATA size)
Assert_VM_true(((currentThread)->publicFlags & J9_PUBLIC_FLAGS_VM_ACCESS)
|| ((J9_XACCESS_EXCLUSIVE == vm->exclusiveAccessState) || (J9_XACCESS_EXCLUSIVE == vm->safePointState)));

if (areJFRBuffersReadyForWrite(currentThread)) {
if (!areJFRBuffersReadyForWrite(currentThread)) {
goto done;
}

Expand Down

0 comments on commit f7ddf02

Please sign in to comment.