提交 2a44916f 编写于 作者: E egahlin

8213966: The ZGC JFR events should be marked as experimental

Reviewed-by: pliden
上级 3f64f2dc
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
*/ */
package jdk.jfr.event.metadata; package jdk.jfr.event.metadata;
import java.io.File;
import java.io.IOException; import java.io.IOException;
import java.lang.reflect.Field; import java.lang.reflect.Field;
import java.nio.file.Files; import java.nio.file.Files;
...@@ -40,8 +39,8 @@ import java.util.stream.Stream; ...@@ -40,8 +39,8 @@ import java.util.stream.Stream;
import jdk.jfr.EventType; import jdk.jfr.EventType;
import jdk.jfr.Experimental; import jdk.jfr.Experimental;
import jdk.jfr.FlightRecorder; import jdk.jfr.FlightRecorder;
import jdk.test.lib.jfr.EventNames;
import jdk.test.lib.Utils; import jdk.test.lib.Utils;
import jdk.test.lib.jfr.EventNames;
/** /**
* @test Check for JFR events not covered by tests * @test Check for JFR events not covered by tests
...@@ -54,14 +53,6 @@ public class TestLookForUntestedEvents { ...@@ -54,14 +53,6 @@ public class TestLookForUntestedEvents {
private static final String MSG_SEPARATOR = "=========================="; private static final String MSG_SEPARATOR = "==========================";
private static Set<String> jfrEventTypes = new HashSet<>(); private static Set<String> jfrEventTypes = new HashSet<>();
private static final Set<String> 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<String> hardToTestEvents = new HashSet<>( private static final Set<String> hardToTestEvents = new HashSet<>(
Arrays.asList( Arrays.asList(
"DataLoss", "IntFlag", "ReservedStackActivation", "DataLoss", "IntFlag", "ReservedStackActivation",
...@@ -146,9 +137,6 @@ public class TestLookForUntestedEvents { ...@@ -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)) { if (!jfrEventTypes.equals(eventsFromEventNamesClass)) {
String exceptionMsg = "Events declared in jdk.test.lib.jfr.EventNames differ " + String exceptionMsg = "Events declared in jdk.test.lib.jfr.EventNames differ " +
"from events returned by FlightRecorder.getEventTypes()"; "from events returned by FlightRecorder.getEventTypes()";
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册