diff -r b6efcf2217f1 -r e47423f1318b test/jdk/jdk/jfr/api/consumer/recordingstream/TestStart.java --- a/test/jdk/jdk/jfr/api/consumer/recordingstream/TestStart.java Sun Sep 22 17:31:57 2019 +0200 +++ b/test/jdk/jdk/jfr/api/consumer/recordingstream/TestStart.java Mon Sep 23 09:16:05 2019 -0700 @@ -77,6 +77,7 @@ } private static void testStartTwice() throws Exception { + log("Entering testStartTwice()"); CountDownLatch started = new CountDownLatch(1); try (RecordingStream rs = new RecordingStream()) { EventProducer t = new EventProducer(); @@ -98,9 +99,11 @@ // OK, as expected } } + log("Leaving testStartTwice()"); } static void testStart() throws Exception { + log("Entering testStart()"); CountDownLatch started = new CountDownLatch(1); try (RecordingStream rs = new RecordingStream()) { rs.onEvent(e -> { @@ -114,9 +117,11 @@ started.await(); t.kill(); } + log("Leaving testStart()"); } static void testStartOnEvent() throws Exception { + log("Entering testStartOnEvent()"); AtomicBoolean ISE = new AtomicBoolean(false); CountDownLatch startedTwice = new CountDownLatch(1); try (RecordingStream rs = new RecordingStream()) { @@ -141,9 +146,11 @@ throw new AssertionError("Expected IllegalStateException"); } } + log("Leaving testStartOnEvent()"); } static void testStartClosed() { + log("Entering testStartClosed()"); RecordingStream rs = new RecordingStream(); rs.close(); try { @@ -152,6 +159,10 @@ } catch (IllegalStateException ise) { // OK, as expected. } + log("Leaving testStartClosed()"); } + private static void log(String msg) { + System.out.println(msg); + } }