# HG changeset patch
# User egahlin
# Date 1544274484 -3600
# Node ID e0ce50c5e2208eb6c361003565ddedfc1232cd3f
# Parent 583fd71c47d60dea883b1f03d9f1b2c267c0a891
8213966: The ZGC JFR events should be marked as experimental
Reviewed-by: pliden
diff -r 583fd71c47d6 -r e0ce50c5e220 src/hotspot/share/jfr/metadata/metadata.xml
--- a/src/hotspot/share/jfr/metadata/metadata.xml Sat Dec 08 00:56:10 2018 -0800
+++ b/src/hotspot/share/jfr/metadata/metadata.xml Sat Dec 08 14:08:04 2018 +0100
@@ -899,7 +899,7 @@
-
+
@@ -908,18 +908,18 @@
-
+
-
+
-
+
diff -r 583fd71c47d6 -r e0ce50c5e220 test/jdk/jdk/jfr/event/metadata/TestLookForUntestedEvents.java
--- a/test/jdk/jdk/jfr/event/metadata/TestLookForUntestedEvents.java Sat Dec 08 00:56:10 2018 -0800
+++ b/test/jdk/jdk/jfr/event/metadata/TestLookForUntestedEvents.java Sat Dec 08 14:08:04 2018 +0100
@@ -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 jdk.jfr.EventType;
import jdk.jfr.Experimental;
import jdk.jfr.FlightRecorder;
+import jdk.test.lib.Utils;
import jdk.test.lib.jfr.EventNames;
-import jdk.test.lib.Utils;
/**
* @test Check for JFR events not covered by tests
@@ -55,14 +54,6 @@
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",
@@ -147,9 +138,6 @@
}
}
- // 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()";