Skip to content

Commit 3a1fb79

Browse files
committed
Temporarily add empty flush method
1 parent 07dfd6f commit 3a1fb79

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

substratevm/src/com.oracle.svm.jfr/src/com/oracle/svm/jfr/Target_jdk_jfr_internal_JVM.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,4 +369,11 @@ public void emitOldObjectSamples(long cutoff, boolean emitAll, boolean skipBFS)
369369
public boolean shouldRotateDisk() {
370370
return SubstrateJVM.get().shouldRotateDisk();
371371
}
372+
373+
/** See {@link JVM#flush}. */
374+
@Substitute
375+
@TargetElement(onlyWith = JDK15OrLater.class) //
376+
public void flush() {
377+
// Temporarily do nothing. This is used for JFR streaming.
378+
}
372379
}

0 commit comments

Comments
 (0)