Skip to content

Commit 99396b5

Browse files
small fix
1 parent 79b9947 commit 99396b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/jfr/JfrThreadLocal.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ private static void flushToGlobalMemoryAndFreeBuffer(JfrBuffer buffer) {
217217
@Uninterruptible(reason = "Locking without transition requires that the whole critical section is uninterruptible.")
218218
private static void flushToGlobalMemoryAndRetireBuffer(JfrBuffer buffer) {
219219
assert VMOperation.isInProgressAtSafepoint();
220-
if (buffer.isNull()) {
220+
if (buffer.isNull() || JfrBufferAccess.isRetired(buffer)) {
221221
return;
222222
}
223223

0 commit comments

Comments
 (0)