equal
deleted
inserted
replaced
33 import jdk.jfr.Name; |
33 import jdk.jfr.Name; |
34 import jdk.jfr.consumer.RecordingStream; |
34 import jdk.jfr.consumer.RecordingStream; |
35 |
35 |
36 /** |
36 /** |
37 * @test |
37 * @test |
38 * @summary Tests RecordingStrream::setSettings |
38 * @summary Tests RecordingStream::setSettings |
39 * @key jfr |
39 * @key jfr |
40 * @requires vm.hasJFR |
40 * @requires vm.hasJFR |
41 * @library /test/lib |
41 * @library /test/lib |
42 * @run main/othervm jdk.jfr.api.consumer.recordingstream.TestSetSettings |
42 * @run main/othervm jdk.jfr.api.consumer.recordingstream.TestSetSettings |
43 */ |
43 */ |
44 public final class TestSetSettings { |
44 public final class TestSetSettings { |
45 |
45 |
46 @Name("LateBloomer") |
46 @Name("LateBloomer") |
47 private final static class LateBloomer extends Event { |
47 private final static class LateBloomer extends Event { |
48 } |
48 } |
|
49 |
49 private static CountDownLatch lateBloomer = new CountDownLatch(1); |
50 private static CountDownLatch lateBloomer = new CountDownLatch(1); |
50 |
51 |
51 public static void main(String... args) throws Exception { |
52 public static void main(String... args) throws Exception { |
52 try (RecordingStream r = new RecordingStream()) { |
53 try (RecordingStream r = new RecordingStream()) { |
53 r.startAsync(); |
54 r.startAsync(); |