jdk/jfr/event/gc/detailed/TestPromotionFailedEventWithDefNew.java and jdk/jfr/event/gc/detailed/TestPromotionFailedEventWithParallelScavenge.java are failing in the loom repo when run with the jtreg wrapper. Typical output is:
----------System.err:(19/1367)----------
java.io.IOException: Not a valid Flight Recorder file. File length is only 0 bytes.
at jdk.jfr/jdk.jfr.internal.consumer.RecordingInput.initialize(RecordingInput.java:91)
at jdk.jfr/jdk.jfr.internal.consumer.RecordingInput.<init>(RecordingInput.java:80)
at jdk.jfr/jdk.jfr.internal.consumer.RecordingInput.<init>(RecordingInput.java:96)
at jdk.jfr/jdk.jfr.consumer.RecordingFile.<init>(RecordingFile.java:86)
at jdk.jfr/jdk.jfr.consumer.RecordingFile.readAllEvents(RecordingFile.java:228)
at jdk.jfr.event.gc.detailed.PromotionFailedEvent.test(PromotionFailedEvent.java:51)
at jdk.jfr.event.gc.detailed.TestPromotionFailedEventWithDefNew.main(TestPromotionFailedEventWithDefNew.java:37)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:577)
at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:327)
at java.base/java.lang.VirtualThread.run(VirtualThread.java:270)
at java.base/java.lang.VirtualThread$VThreadContinuation.lambda$new$0(VirtualThread.java:155)
at java.base/jdk.internal.vm.Continuation.enter0(Continuation.java:378)
at java.base/jdk.internal.vm.Continuation.enter(Continuation.java:371)
----------System.err:(19/1367)----------
java.io.IOException: Not a valid Flight Recorder file. File length is only 0 bytes.
at jdk.jfr/jdk.jfr.internal.consumer.RecordingInput.initialize(RecordingInput.java:91)
at jdk.jfr/jdk.jfr.internal.consumer.RecordingInput.<init>(RecordingInput.java:80)
at jdk.jfr/jdk.jfr.internal.consumer.RecordingInput.<init>(RecordingInput.java:96)
at jdk.jfr/jdk.jfr.consumer.RecordingFile.<init>(RecordingFile.java:86)
at jdk.jfr/jdk.jfr.consumer.RecordingFile.readAllEvents(RecordingFile.java:228)
at jdk.jfr.event.gc.detailed.PromotionFailedEvent.test(PromotionFailedEvent.java:51)
at jdk.jfr.event.gc.detailed.TestPromotionFailedEventWithDefNew.main(TestPromotionFailedEventWithDefNew.java:37)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:577)
at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:327)
at java.base/java.lang.VirtualThread.run(VirtualThread.java:270)
at java.base/java.lang.VirtualThread$VThreadContinuation.lambda$new$0(VirtualThread.java:155)
at java.base/jdk.internal.vm.Continuation.enter0(Continuation.java:378)
at java.base/jdk.internal.vm.Continuation.enter(Continuation.java:371)