|
26 | 26 |
|
27 | 27 | import java.util.List; |
28 | 28 |
|
| 29 | +import com.oracle.svm.core.jdk.JDK14OrLater; |
29 | 30 | import com.oracle.svm.core.jdk.JDK15OrEarlier; |
30 | 31 | import com.oracle.svm.core.jdk.JDK17OrLater; |
| 32 | +import com.oracle.svm.core.util.VMError; |
31 | 33 | import org.graalvm.nativeimage.ProcessProperties; |
32 | 34 |
|
33 | 35 | import com.oracle.svm.core.SubstrateUtil; |
|
38 | 40 | import com.oracle.svm.core.annotate.TargetElement; |
39 | 41 | import com.oracle.svm.core.jdk.JDK14OrEarlier; |
40 | 42 | import com.oracle.svm.core.jdk.JDK15OrLater; |
41 | | -import com.oracle.svm.core.jdk.JDK17OrLater; |
42 | 43 | import com.oracle.svm.jfr.traceid.JfrTraceId; |
43 | 44 |
|
44 | 45 | import jdk.jfr.Event; |
@@ -372,8 +373,36 @@ public boolean shouldRotateDisk() { |
372 | 373 |
|
373 | 374 | /** See {@link JVM#flush}. */ |
374 | 375 | @Substitute |
375 | | - @TargetElement(onlyWith = JDK15OrLater.class) // |
| 376 | + @TargetElement(onlyWith = JDK14OrLater.class) // |
376 | 377 | public void flush() { |
377 | 378 | // Temporarily do nothing. This is used for JFR streaming. |
378 | 379 | } |
| 380 | + |
| 381 | + /** See {@link JVM#include}. */ |
| 382 | + @Substitute |
| 383 | + @TargetElement(onlyWith = JDK14OrLater.class) // |
| 384 | + public void include(Thread thread) { |
| 385 | + // Temporarily do nothing. This is used for JFR streaming. |
| 386 | + } |
| 387 | + |
| 388 | + /** See {@link JVM#exclude}. */ |
| 389 | + @Substitute |
| 390 | + @TargetElement(onlyWith = JDK14OrLater.class) // |
| 391 | + public void exclude(Thread thread) { |
| 392 | + // Temporarily do nothing. This is used for JFR streaming. |
| 393 | + } |
| 394 | + |
| 395 | + /** See {@link JVM#isExcluded}. */ |
| 396 | + @Substitute |
| 397 | + @TargetElement(onlyWith = JDK14OrLater.class) // |
| 398 | + public boolean isExcluded(Thread thread) { |
| 399 | + // Temporarily do nothing. This is used for JFR streaming. |
| 400 | + return false; |
| 401 | + } |
| 402 | + /** See {@link JVM#markChunkFinal}. */ |
| 403 | + @Substitute |
| 404 | + @TargetElement(onlyWith = JDK14OrLater.class) // |
| 405 | + public void markChunkFinal() { |
| 406 | + // Temporarily do nothing. This is used for JFR streaming. |
| 407 | + } |
379 | 408 | } |
0 commit comments