Skip to content

Commit 5521ad9

Browse files
authored
Revert "Fix gaurd condition in jfr local buffer writer"
1 parent 26b3d7d commit 5521ad9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

runtime/vm/jfr.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ areJFRBuffersReadyForWrite(J9VMThread *currentThread)
263263
bool result = true;
264264
J9JavaVM *vm = currentThread->javaVM;
265265

266-
if ((!vm->jfrState.isCreated)
266+
if ((!vm->jfrState.isStarted)
267267
|| (NULL == currentThread->jfrBuffer.bufferStart)
268268
|| (NULL == vm->jfrBuffer.bufferCurrent)
269269
) {
@@ -292,7 +292,7 @@ writeOutGlobalBuffer(J9VMThread *currentThread, bool finalWrite, bool dumpCalled
292292
j9tty_printf(PORTLIB, "\n!!! writing global buffer %p of size %p\n", currentThread, vm->jfrBuffer.bufferSize - vm->jfrBuffer.bufferRemaining);
293293
#endif /* defined(DEBUG) */
294294

295-
if (vm->jfrState.isCreated && (NULL != vm->jfrBuffer.bufferCurrent)) {
295+
if (vm->jfrState.isStarted && (NULL != vm->jfrBuffer.bufferCurrent)) {
296296
VM_JFRWriter::flushJFRDataToFile(currentThread, finalWrite, dumpCalled);
297297

298298
/* Reset the buffer */

0 commit comments

Comments
 (0)