From 2a44916f22dc698a4712fdf52dc7a03de520293b Mon Sep 17 00:00:00 2001 From: egahlin Date: Sat, 8 Dec 2018 14:08:04 +0100 Subject: [PATCH] 8213966: The ZGC JFR events should be marked as experimental Reviewed-by: pliden --- .../event/metadata/TestLookForUntestedEvents.java | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/test/jdk/jfr/event/metadata/TestLookForUntestedEvents.java b/test/jdk/jfr/event/metadata/TestLookForUntestedEvents.java index eb9bbf35b..03cb587a5 100644 --- a/test/jdk/jfr/event/metadata/TestLookForUntestedEvents.java +++ b/test/jdk/jfr/event/metadata/TestLookForUntestedEvents.java @@ -24,7 +24,6 @@ */ package jdk.jfr.event.metadata; -import java.io.File; import java.io.IOException; import java.lang.reflect.Field; import java.nio.file.Files; @@ -40,8 +39,8 @@ import java.util.stream.Stream; import jdk.jfr.EventType; import jdk.jfr.Experimental; import jdk.jfr.FlightRecorder; -import jdk.test.lib.jfr.EventNames; import jdk.test.lib.Utils; +import jdk.test.lib.jfr.EventNames; /** * @test Check for JFR events not covered by tests @@ -54,14 +53,6 @@ public class TestLookForUntestedEvents { private static final String MSG_SEPARATOR = "=========================="; private static Set jfrEventTypes = new HashSet<>(); - private static final Set knownEventsMissingFromEventNames = new HashSet<>( - Arrays.asList( - // The Z* events below should be marked as experimental; see: JDK-8213966 - "ZStatisticsSampler", "ZStatisticsCounter", - "ZPageAllocation", "ZThreadPhase" - ) - ); - private static final Set hardToTestEvents = new HashSet<>( Arrays.asList( "DataLoss", "IntFlag", "ReservedStackActivation", @@ -146,9 +137,6 @@ public class TestLookForUntestedEvents { } } - // Account for the events that are known to be missing from the EventNames.java - eventsFromEventNamesClass.addAll(knownEventsMissingFromEventNames); - if (!jfrEventTypes.equals(eventsFromEventNamesClass)) { String exceptionMsg = "Events declared in jdk.test.lib.jfr.EventNames differ " + "from events returned by FlightRecorder.getEventTypes()"; -- GitLab