We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79b9947 commit 99396b5Copy full SHA for 99396b5
substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/jfr/JfrThreadLocal.java
@@ -217,7 +217,7 @@ private static void flushToGlobalMemoryAndFreeBuffer(JfrBuffer buffer) {
217
@Uninterruptible(reason = "Locking without transition requires that the whole critical section is uninterruptible.")
218
private static void flushToGlobalMemoryAndRetireBuffer(JfrBuffer buffer) {
219
assert VMOperation.isInProgressAtSafepoint();
220
- if (buffer.isNull()) {
+ if (buffer.isNull() || JfrBufferAccess.isRetired(buffer)) {
221
return;
222
}
223
0 commit comments