8207830: [aix] disable jfr in build and tests

Reviewed-by: kvn, erikj
This commit is contained in:
Goetz Lindenmaier 2018-07-20 09:46:57 +02:00
parent 9dcc8b4a96
commit c798b68ee1
438 changed files with 904 additions and 431 deletions

View File

@ -331,8 +331,10 @@ AC_DEFUN_ONCE([HOTSPOT_SETUP_JVM_FEATURES],
# Enable JFR by default, except for Zero, linux-sparcv9 and on minimal. # Enable JFR by default, except for Zero, linux-sparcv9 and on minimal.
if ! HOTSPOT_CHECK_JVM_VARIANT(zero); then if ! HOTSPOT_CHECK_JVM_VARIANT(zero); then
if test "x$OPENJDK_TARGET_OS" != xlinux || test "x$OPENJDK_TARGET_CPU" != xsparcv9; then if test "x$OPENJDK_TARGET_OS" != xaix; then
NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES jfr" if test "x$OPENJDK_TARGET_OS" != xlinux || test "x$OPENJDK_TARGET_CPU" != xsparcv9; then
NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES jfr"
fi
fi fi
fi fi
@ -459,7 +461,7 @@ AC_DEFUN_ONCE([HOTSPOT_SETUP_JVM_FEATURES],
JVM_FEATURES_aot="aot" JVM_FEATURES_aot="aot"
fi fi
else else
if test "x$enable_aot" = "xno" || "x$DISABLE_AOT" = "xaot"; then if test "x$enable_aot" = "xno" || test "x$DISABLE_AOT" = "xaot"; then
AC_MSG_RESULT([no, forced]) AC_MSG_RESULT([no, forced])
else else
AC_MSG_RESULT([no]) AC_MSG_RESULT([no])

View File

@ -1785,6 +1785,14 @@ WB_ENTRY(jboolean, WB_IsJavaHeapArchiveSupported(JNIEnv* env))
WB_END WB_END
WB_ENTRY(jboolean, WB_IsJFRIncludedInVmBuild(JNIEnv* env))
#if INCLUDE_JFR
return true;
#else
return false;
#endif // INCLUDE_JFR
WB_END
#if INCLUDE_CDS #if INCLUDE_CDS
WB_ENTRY(jint, WB_GetOffsetForName(JNIEnv* env, jobject o, jstring name)) WB_ENTRY(jint, WB_GetOffsetForName(JNIEnv* env, jobject o, jstring name))
@ -2163,6 +2171,7 @@ static JNINativeMethod methods[] = {
{CC"getResolvedReferences", CC"(Ljava/lang/Class;)Ljava/lang/Object;", (void*)&WB_GetResolvedReferences}, {CC"getResolvedReferences", CC"(Ljava/lang/Class;)Ljava/lang/Object;", (void*)&WB_GetResolvedReferences},
{CC"areOpenArchiveHeapObjectsMapped", CC"()Z", (void*)&WB_AreOpenArchiveHeapObjectsMapped}, {CC"areOpenArchiveHeapObjectsMapped", CC"()Z", (void*)&WB_AreOpenArchiveHeapObjectsMapped},
{CC"isCDSIncludedInVmBuild", CC"()Z", (void*)&WB_IsCDSIncludedInVmBuild }, {CC"isCDSIncludedInVmBuild", CC"()Z", (void*)&WB_IsCDSIncludedInVmBuild },
{CC"isJFRIncludedInVmBuild", CC"()Z", (void*)&WB_IsJFRIncludedInVmBuild },
{CC"isJavaHeapArchiveSupported", CC"()Z", (void*)&WB_IsJavaHeapArchiveSupported }, {CC"isJavaHeapArchiveSupported", CC"()Z", (void*)&WB_IsJavaHeapArchiveSupported },
{CC"clearInlineCaches0", CC"(Z)V", (void*)&WB_ClearInlineCaches }, {CC"clearInlineCaches0", CC"(Z)V", (void*)&WB_ClearInlineCaches },

View File

@ -54,6 +54,7 @@ requires.properties= \
vm.debug \ vm.debug \
vm.hasSA \ vm.hasSA \
vm.hasSAandCanAttach \ vm.hasSAandCanAttach \
vm.hasJFR \
vm.rtm.cpu \ vm.rtm.cpu \
vm.rtm.os \ vm.rtm.os \
vm.aot \ vm.aot \

View File

@ -22,10 +22,10 @@
* *
*/ */
/* /**
* @test * @test
* @summary Make sure CDS and JFR work together. * @summary Make sure CDS and JFR work together.
* @requires vm.cds * @requires vm.hasJFR & vm.cds
* @library /test/lib /test/hotspot/jtreg/runtime/appcds /test/hotspot/jtreg/runtime/appcds/test-classes test-classes * @library /test/lib /test/hotspot/jtreg/runtime/appcds /test/hotspot/jtreg/runtime/appcds/test-classes test-classes
* @modules jdk.jfr * @modules jdk.jfr
* @build Hello GetFlightRecorder * @build Hello GetFlightRecorder

View File

@ -22,14 +22,14 @@
* *
*/ */
/* /**
* @test * @test
* @bug 8145221 * @bug 8145221
* @summary After creating an AppCDS archive, run the test with the JFR profiler * @summary After creating an AppCDS archive, run the test with the JFR profiler
* enabled, and keep calling a method in the archive in a tight loop. * enabled, and keep calling a method in the archive in a tight loop.
* This is to test the safe handling of trampoline functions by the * This is to test the safe handling of trampoline functions by the
* profiler. * profiler.
* @requires vm.cds * @requires vm.hasJFR & vm.cds
* @library /test/lib /test/hotspot/jtreg/runtime/appcds * @library /test/lib /test/hotspot/jtreg/runtime/appcds
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management

View File

@ -22,10 +22,10 @@
* *
*/ */
/* /**
* @test * @test
* @summary Test relevant combinations of command line flags with shared strings * @summary Test relevant combinations of command line flags with shared strings
* @requires vm.cds.archived.java.heap * @requires vm.cds.archived.java.heap & vm.hasJFR
* @library /test/lib /test/hotspot/jtreg/runtime/appcds * @library /test/lib /test/hotspot/jtreg/runtime/appcds
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* @modules java.management * @modules java.management
@ -34,7 +34,21 @@
* @run main FlagCombo * @run main FlagCombo
*/ */
/**
* @test
* @summary Test relevant combinations of command line flags with shared strings
* @comment A special test excluding the case that requires JFR
* @requires vm.cds.archived.java.heap & !vm.hasJFR
* @library /test/lib /test/hotspot/jtreg/runtime/appcds
* @modules java.base/jdk.internal.misc
* @modules java.management
* jdk.jartool/sun.tools.jar
* @build HelloString
* @run main FlagCombo noJfr
*/
import jdk.test.lib.BuildHelper; import jdk.test.lib.BuildHelper;
import jdk.test.lib.Platform;
public class FlagCombo { public class FlagCombo {
public static void main(String[] args) throws Exception { public static void main(String[] args) throws Exception {
@ -45,8 +59,10 @@ public class FlagCombo {
SharedStringsUtils.runWithArchive("HelloString", "-XX:+UseG1GC"); SharedStringsUtils.runWithArchive("HelloString", "-XX:+UseG1GC");
SharedStringsUtils.runWithArchiveAuto("HelloString", if (args.length == 0) {
"-XX:StartFlightRecording=dumponexit=true"); SharedStringsUtils.runWithArchiveAuto("HelloString",
"-XX:StartFlightRecording=dumponexit=true");
}
SharedStringsUtils.runWithArchive("HelloString", "-XX:+UnlockDiagnosticVMOptions", SharedStringsUtils.runWithArchive("HelloString", "-XX:+UnlockDiagnosticVMOptions",
"-XX:NativeMemoryTracking=detail", "-XX:+PrintNMTStatistics"); "-XX:NativeMemoryTracking=detail", "-XX:+PrintNMTStatistics");

View File

@ -42,6 +42,7 @@ requires.properties= \
vm.cds \ vm.cds \
vm.hasSA \ vm.hasSA \
vm.hasSAandCanAttach \ vm.hasSAandCanAttach \
vm.hasJFR \
docker.support \ docker.support \
release.implementor release.implementor

View File

@ -35,9 +35,10 @@ import jdk.jfr.consumer.RecordedThread;
import jdk.test.lib.Asserts; import jdk.test.lib.Asserts;
import jdk.test.lib.jfr.Events; import jdk.test.lib.jfr.Events;
/* /**
* @test * @test
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.consumer.TestFieldAccess * @run main/othervm jdk.jfr.api.consumer.TestFieldAccess
*/ */

View File

@ -42,10 +42,11 @@ import jdk.test.lib.Asserts;
import jdk.test.lib.jfr.Events; import jdk.test.lib.jfr.Events;
import jdk.test.lib.jfr.SimpleEvent; import jdk.test.lib.jfr.SimpleEvent;
/* /**
* @test * @test
* @summary Verifies that a recorded JFR event has the correct stack trace info * @summary Verifies that a recorded JFR event has the correct stack trace info
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.consumer.TestGetStackTrace * @run main/othervm jdk.jfr.api.consumer.TestGetStackTrace
*/ */

View File

@ -42,9 +42,10 @@ import jdk.jfr.consumer.RecordedStackTrace;
import jdk.test.lib.jfr.Events; import jdk.test.lib.jfr.Events;
/* /**
* @test * @test
* @key jfr * @key jfr
* @requires vm.hasJFR
* *
* @library /test/lib * @library /test/lib
* @modules java.scripting * @modules java.scripting

View File

@ -39,9 +39,10 @@ import jdk.test.lib.jfr.Events;
import jdk.test.lib.jfr.SimpleEvent; import jdk.test.lib.jfr.SimpleEvent;
/* /**
* @test * @test
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm -Xint jdk.jfr.api.consumer.TestMethodGetModifiers * @run main/othervm -Xint jdk.jfr.api.consumer.TestMethodGetModifiers
*/ */

View File

@ -38,10 +38,11 @@ import jdk.test.lib.Asserts;
import jdk.test.lib.Utils; import jdk.test.lib.Utils;
/* /**
* @test * @test
* @summary Reads the recorded file two times and verifies that both reads are the same * @summary Reads the recorded file two times and verifies that both reads are the same
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.consumer.TestReadTwice * @run main/othervm jdk.jfr.api.consumer.TestReadTwice
*/ */

View File

@ -36,10 +36,11 @@ import jdk.test.lib.jfr.EventNames;
import jdk.test.lib.jfr.Events; import jdk.test.lib.jfr.Events;
import jdk.test.lib.jfr.TestClassLoader; import jdk.test.lib.jfr.TestClassLoader;
/* /**
* @test * @test
* @summary Verifies the methods of the RecordedClassLoader * @summary Verifies the methods of the RecordedClassLoader
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.consumer.TestRecordedClassLoader * @run main/othervm jdk.jfr.api.consumer.TestRecordedClassLoader
*/ */

View File

@ -37,10 +37,11 @@ import jdk.jfr.consumer.RecordedEvent;
import jdk.test.lib.Asserts; import jdk.test.lib.Asserts;
import jdk.test.lib.jfr.Events; import jdk.test.lib.jfr.Events;
/* /**
* @test * @test
* @summary Verifies the methods of the RecordedEvent * @summary Verifies the methods of the RecordedEvent
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.consumer.TestRecordedEvent * @run main/othervm jdk.jfr.api.consumer.TestRecordedEvent
*/ */

View File

@ -34,10 +34,11 @@ import jdk.test.lib.Asserts;
import jdk.test.lib.jfr.Events; import jdk.test.lib.jfr.Events;
import jdk.test.lib.jfr.SimpleEvent; import jdk.test.lib.jfr.SimpleEvent;
/* /**
* @test * @test
* @summary Tests that the RecordedEvent.getThread() returns th expected info * @summary Tests that the RecordedEvent.getThread() returns th expected info
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.consumer.TestRecordedEventGetThread * @run main/othervm jdk.jfr.api.consumer.TestRecordedEventGetThread
*/ */

View File

@ -36,10 +36,11 @@ import jdk.jfr.consumer.RecordingFile;
import jdk.test.lib.Asserts; import jdk.test.lib.Asserts;
import jdk.test.lib.Utils; import jdk.test.lib.Utils;
/* /**
* @test * @test
* @summary Tests that the RecordedEvent.getThread() returns th expected info * @summary Tests that the RecordedEvent.getThread() returns th expected info
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.consumer.TestRecordedEventGetThreadOther * @run main/othervm jdk.jfr.api.consumer.TestRecordedEventGetThreadOther
*/ */

View File

@ -37,10 +37,11 @@ import jdk.test.lib.jfr.Events;
import jdk.test.lib.jfr.SimpleEvent; import jdk.test.lib.jfr.SimpleEvent;
/* /**
* @test * @test
* @summary Simple test for RecordedFrame APIs * @summary Simple test for RecordedFrame APIs
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm -Xint -XX:+UseInterpreter -Dinterpreted=true jdk.jfr.api.consumer.TestRecordedFrame * @run main/othervm -Xint -XX:+UseInterpreter -Dinterpreted=true jdk.jfr.api.consumer.TestRecordedFrame
* @run main/othervm -Xcomp -XX:-UseInterpreter -Dinterpreted=false jdk.jfr.api.consumer.TestRecordedFrame * @run main/othervm -Xcomp -XX:-UseInterpreter -Dinterpreted=false jdk.jfr.api.consumer.TestRecordedFrame

View File

@ -40,9 +40,10 @@ import jdk.test.lib.jfr.EventNames;
import jdk.test.lib.jfr.Events; import jdk.test.lib.jfr.Events;
import jdk.test.lib.jfr.RecurseThread; import jdk.test.lib.jfr.RecurseThread;
/* /**
* @test * @test
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.consumer.TestRecordedFullStackTrace * @run main/othervm jdk.jfr.api.consumer.TestRecordedFullStackTrace
*/ */

View File

@ -33,10 +33,11 @@ import jdk.test.lib.Asserts;
import jdk.test.lib.jfr.Events; import jdk.test.lib.jfr.Events;
import jdk.test.lib.jfr.SimpleEvent; import jdk.test.lib.jfr.SimpleEvent;
/* /**
* @test * @test
* @summary Tests that an instant event gets recorded with its start time equal to its end time * @summary Tests that an instant event gets recorded with its start time equal to its end time
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.consumer.TestRecordedInstantEventTimestamp * @run main/othervm jdk.jfr.api.consumer.TestRecordedInstantEventTimestamp
*/ */

View File

@ -40,9 +40,10 @@ import jdk.jfr.consumer.RecordedStackTrace;
import jdk.test.lib.jfr.Events; import jdk.test.lib.jfr.Events;
/* /**
* @test * @test
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.consumer.TestRecordedMethodDescriptor * @run main/othervm jdk.jfr.api.consumer.TestRecordedMethodDescriptor
*/ */

View File

@ -47,10 +47,11 @@ import jdk.jfr.consumer.RecordedThread;
import jdk.test.lib.Asserts; import jdk.test.lib.Asserts;
import jdk.test.lib.jfr.Events; import jdk.test.lib.jfr.Events;
/* /**
* @test * @test
* @summary Verifies the methods of the RecordedObject * @summary Verifies the methods of the RecordedObject
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.consumer.TestRecordedObject * @run main/othervm jdk.jfr.api.consumer.TestRecordedObject
*/ */

View File

@ -33,10 +33,11 @@ import jdk.test.lib.Asserts;
import jdk.test.lib.jfr.Events; import jdk.test.lib.jfr.Events;
import jdk.test.lib.jfr.SimpleEvent; import jdk.test.lib.jfr.SimpleEvent;
/* /**
* @test * @test
* @summary Tests getParent method in RecordedThreadGroup * @summary Tests getParent method in RecordedThreadGroup
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.consumer.TestRecordedThreadGroupParent * @run main/othervm jdk.jfr.api.consumer.TestRecordedThreadGroupParent
*/ */

View File

@ -49,10 +49,11 @@ import jdk.jfr.consumer.RecordingFile;
import jdk.test.lib.Asserts; import jdk.test.lib.Asserts;
import jdk.test.lib.Utils; import jdk.test.lib.Utils;
/* /**
* @test * @test
* @summary Verifies that all methods in RecordingFIle are working * @summary Verifies that all methods in RecordingFIle are working
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.consumer.TestRecordingFile * @run main/othervm jdk.jfr.api.consumer.TestRecordingFile
*/ */

View File

@ -33,10 +33,11 @@ import jdk.test.lib.Asserts;
import jdk.test.lib.jfr.Events; import jdk.test.lib.jfr.Events;
import jdk.test.lib.jfr.SimpleEvent; import jdk.test.lib.jfr.SimpleEvent;
/* /**
* @test * @test
* @summary Verifies that RecordingFile.readEvent() throws EOF when past the last record * @summary Verifies that RecordingFile.readEvent() throws EOF when past the last record
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.consumer.TestRecordingFileReadEventEof * @run main/othervm jdk.jfr.api.consumer.TestRecordingFileReadEventEof
*/ */

View File

@ -32,10 +32,11 @@ import jdk.test.lib.Asserts;
import jdk.test.lib.jfr.Events; import jdk.test.lib.jfr.Events;
import jdk.test.lib.jfr.SimpleEvent; import jdk.test.lib.jfr.SimpleEvent;
/* /**
* @test * @test
* @summary Tests that chunks are read in order and constant pools from multiple chunks can be read * @summary Tests that chunks are read in order and constant pools from multiple chunks can be read
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.consumer.TestRecordingInternals * @run main/othervm jdk.jfr.api.consumer.TestRecordingInternals
*/ */

View File

@ -34,10 +34,11 @@ import jdk.jfr.consumer.RecordedEvent;
import jdk.test.lib.Asserts; import jdk.test.lib.Asserts;
import jdk.test.lib.jfr.Events; import jdk.test.lib.jfr.Events;
/* /**
* @test * @test
* @summary Verifies that a single JFR event is recorded as expected * @summary Verifies that a single JFR event is recorded as expected
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.consumer.TestSingleRecordedEvent * @run main/othervm jdk.jfr.api.consumer.TestSingleRecordedEvent
*/ */

View File

@ -34,10 +34,11 @@ import jdk.jfr.consumer.RecordedEvent;
import jdk.test.lib.Asserts; import jdk.test.lib.Asserts;
import jdk.test.lib.jfr.Events; import jdk.test.lib.jfr.Events;
/* /**
* @test * @test
* @summary Sanity checks that RecordedEvent#toString returns something valid * @summary Sanity checks that RecordedEvent#toString returns something valid
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.consumer.TestToString * @run main/othervm jdk.jfr.api.consumer.TestToString
*/ */

View File

@ -37,10 +37,11 @@ import jdk.test.lib.Asserts;
import jdk.test.lib.jfr.Events; import jdk.test.lib.jfr.Events;
/* /**
* @test * @test
* @summary Verifies that the recorded value descriptors are correct * @summary Verifies that the recorded value descriptors are correct
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.consumer.TestValueDescriptorRecorded * @run main/othervm jdk.jfr.api.consumer.TestValueDescriptorRecorded
*/ */

View File

@ -37,10 +37,11 @@ import jdk.jfr.consumer.RecordingFile;
import jdk.test.lib.Asserts; import jdk.test.lib.Asserts;
import jdk.test.lib.jfr.Events; import jdk.test.lib.jfr.Events;
/* /**
* @test * @test
* @summary Tests that abstract events are not part of metadata * @summary Tests that abstract events are not part of metadata
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.event.TestAbstractEvent * @run main/othervm jdk.jfr.api.event.TestAbstractEvent
*/ */

View File

@ -32,10 +32,11 @@ import jdk.jfr.consumer.RecordedEvent;
import jdk.test.lib.jfr.Events; import jdk.test.lib.jfr.Events;
import jdk.test.lib.jfr.SimpleEvent; import jdk.test.lib.jfr.SimpleEvent;
/* /**
* @test * @test
* @summary Test for RecordedEvent.getDuration() * @summary Test for RecordedEvent.getDuration()
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.event.TestBeginEnd * @run main/othervm jdk.jfr.api.event.TestBeginEnd
*/ */

View File

@ -37,10 +37,11 @@ import jdk.jfr.consumer.RecordedEvent;
import jdk.test.lib.Asserts; import jdk.test.lib.Asserts;
import jdk.test.lib.jfr.Events; import jdk.test.lib.jfr.Events;
/* /**
* @test * @test
* @summary Test enable/disable event and verify recording has expected events. * @summary Test enable/disable event and verify recording has expected events.
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.event.TestClinitRegistration * @run main/othervm jdk.jfr.api.event.TestClinitRegistration
*/ */

View File

@ -35,10 +35,11 @@ import jdk.jfr.consumer.RecordedEvent;
import jdk.test.lib.Asserts; import jdk.test.lib.Asserts;
import jdk.test.lib.jfr.Events; import jdk.test.lib.jfr.Events;
/* /**
* @test * @test
* @summary Tests that a cloned event can be successfully committed. * @summary Tests that a cloned event can be successfully committed.
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.event.TestClonedEvent * @run main/othervm jdk.jfr.api.event.TestClonedEvent
*/ */

View File

@ -36,10 +36,11 @@ import jdk.jfr.consumer.RecordedEvent;
import jdk.test.lib.Asserts; import jdk.test.lib.Asserts;
import jdk.test.lib.jfr.Events; import jdk.test.lib.jfr.Events;
/* /**
* @test * @test
* @summary Test enable/disable event and verify recording has expected events. * @summary Test enable/disable event and verify recording has expected events.
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.event.TestEnableDisable * @run main/othervm jdk.jfr.api.event.TestEnableDisable
*/ */

View File

@ -37,10 +37,11 @@ import jdk.jfr.ValueDescriptor;
import jdk.test.lib.Asserts; import jdk.test.lib.Asserts;
/* /**
* @test * @test
* @summary EventFactory simple test * @summary EventFactory simple test
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.event.TestEventFactory * @run main/othervm jdk.jfr.api.event.TestEventFactory
*/ */

View File

@ -33,10 +33,11 @@ import jdk.jfr.FlightRecorder;
import jdk.test.lib.Asserts; import jdk.test.lib.Asserts;
/* /**
* @test * @test
* @summary Verifies that EventFactory can register the same event twice * @summary Verifies that EventFactory can register the same event twice
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.event.TestEventFactoryRegisterTwice * @run main/othervm jdk.jfr.api.event.TestEventFactoryRegisterTwice
*/ */

View File

@ -37,10 +37,11 @@ import jdk.jfr.Registered;
import jdk.test.lib.Asserts; import jdk.test.lib.Asserts;
/* /**
* @test * @test
* @summary EventFactory register/unregister API test * @summary EventFactory register/unregister API test
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.event.TestEventFactoryRegistration * @run main/othervm jdk.jfr.api.event.TestEventFactoryRegistration
*/ */

View File

@ -33,10 +33,11 @@ import jdk.jfr.consumer.RecordedEvent;
import jdk.test.lib.Asserts; import jdk.test.lib.Asserts;
import jdk.test.lib.jfr.Events; import jdk.test.lib.jfr.Events;
/* /**
* @test * @test
* @summary Test with event class inheritance * @summary Test with event class inheritance
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.event.TestExtends * @run main/othervm jdk.jfr.api.event.TestExtends
*/ */

View File

@ -36,10 +36,11 @@ import jdk.test.lib.jfr.EventNames;
import jdk.test.lib.jfr.Events; import jdk.test.lib.jfr.Events;
import jdk.test.lib.jfr.SimpleEvent; import jdk.test.lib.jfr.SimpleEvent;
/* /**
* @test * @test
* @summary Test for RecordedEvent.getDuration() * @summary Test for RecordedEvent.getDuration()
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.event.TestGetDuration * @run main/othervm jdk.jfr.api.event.TestGetDuration
*/ */

View File

@ -30,10 +30,11 @@ import jdk.jfr.Recording;
import jdk.test.lib.Asserts; import jdk.test.lib.Asserts;
import jdk.test.lib.jfr.SimpleEvent; import jdk.test.lib.jfr.SimpleEvent;
/* /**
* @test * @test
* @summary Test Event.isEnabled() * @summary Test Event.isEnabled()
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.event.TestIsEnabled * @run main/othervm jdk.jfr.api.event.TestIsEnabled
*/ */

View File

@ -30,10 +30,11 @@ import jdk.jfr.EventType;
import jdk.jfr.Recording; import jdk.jfr.Recording;
import jdk.test.lib.Asserts; import jdk.test.lib.Asserts;
/* /**
* @test * @test
* @summary Test Event.isEnabled() with multiple recordings * @summary Test Event.isEnabled() with multiple recordings
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.event.TestIsEnabledMultiple * @run main/othervm jdk.jfr.api.event.TestIsEnabledMultiple
*/ */

View File

@ -34,10 +34,11 @@ import jdk.jfr.consumer.RecordedEvent;
import jdk.test.lib.Asserts; import jdk.test.lib.Asserts;
import jdk.test.lib.jfr.Events; import jdk.test.lib.jfr.Events;
/* /**
* @test * @test
* @summary Use custom event that reuse method names begin, end and commit. * @summary Use custom event that reuse method names begin, end and commit.
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.event.TestOwnCommit * @run main/othervm jdk.jfr.api.event.TestOwnCommit
*/ */

View File

@ -31,10 +31,11 @@ import jdk.jfr.Event;
import jdk.jfr.Recording; import jdk.jfr.Recording;
import jdk.test.lib.Asserts; import jdk.test.lib.Asserts;
/* /**
* @test * @test
* @summary Test enable/disable event and verify recording has expected events. * @summary Test enable/disable event and verify recording has expected events.
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm -Xlog:jfr+event+setting=trace jdk.jfr.api.event.TestShouldCommit * @run main/othervm -Xlog:jfr+event+setting=trace jdk.jfr.api.event.TestShouldCommit
*/ */

View File

@ -33,10 +33,11 @@ import jdk.jfr.Recording;
import jdk.jfr.consumer.RecordedEvent; import jdk.jfr.consumer.RecordedEvent;
import jdk.test.lib.jfr.Events; import jdk.test.lib.jfr.Events;
/* /**
* @test * @test
* @summary Enable an event from a static function in the event. * @summary Enable an event from a static function in the event.
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.event.TestStaticEnable * @run main/othervm jdk.jfr.api.event.TestStaticEnable
*/ */

View File

@ -51,9 +51,10 @@ import jdk.jfr.ValueDescriptor;
import jdk.jfr.consumer.RecordedEvent; import jdk.jfr.consumer.RecordedEvent;
import jdk.test.lib.jfr.Events; import jdk.test.lib.jfr.Events;
/* /**
* @test * @test
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.event.dynamic.TestDynamicAnnotations * @run main/othervm jdk.jfr.api.event.dynamic.TestDynamicAnnotations
*/ */

View File

@ -53,9 +53,10 @@ import jdk.test.lib.jfr.EventTypePrototype;
import jdk.test.lib.jfr.Events; import jdk.test.lib.jfr.Events;
/* /**
* @test * @test
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.event.dynamic.TestEventFactory * @run main/othervm jdk.jfr.api.event.dynamic.TestEventFactory
*/ */

View File

@ -29,9 +29,10 @@ import jdk.jfr.FlightRecorder;
import jdk.jfr.Recording; import jdk.jfr.Recording;
import jdk.jfr.RecordingState; import jdk.jfr.RecordingState;
/* /**
* @test * @test
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib /test/jdk * @library /test/lib /test/jdk
* @run main/othervm jdk.jfr.api.flightrecorder.TestAddListenerTwice * @run main/othervm jdk.jfr.api.flightrecorder.TestAddListenerTwice
*/ */

View File

@ -35,10 +35,11 @@ import jdk.jfr.Event;
import jdk.jfr.FlightRecorder; import jdk.jfr.FlightRecorder;
import jdk.jfr.Recording; import jdk.jfr.Recording;
/* /**
* @test * @test
* @summary * @summary
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.flightrecorder.TestAddPeriodicEvent * @run main/othervm jdk.jfr.api.flightrecorder.TestAddPeriodicEvent
*/ */

View File

@ -34,9 +34,10 @@ import java.util.concurrent.locks.ReentrantLock;
import jdk.jfr.FlightRecorder; import jdk.jfr.FlightRecorder;
import jdk.jfr.FlightRecorderListener; import jdk.jfr.FlightRecorderListener;
/* /**
* @test * @test
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.flightrecorder.TestFlightRecorderListenerRecorderInitialized * @run main/othervm jdk.jfr.api.flightrecorder.TestFlightRecorderListenerRecorderInitialized
*/ */

View File

@ -38,9 +38,10 @@ import jdk.jfr.Recording;
import jdk.jfr.consumer.RecordedEvent; import jdk.jfr.consumer.RecordedEvent;
import jdk.test.lib.jfr.Events; import jdk.test.lib.jfr.Events;
/* /**
* @test * @test
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm/timeout=600 jdk.jfr.api.flightrecorder.TestGetEventTypes * @run main/othervm/timeout=600 jdk.jfr.api.flightrecorder.TestGetEventTypes
*/ */

View File

@ -29,9 +29,10 @@ import static jdk.test.lib.Asserts.assertEquals;
import jdk.jfr.FlightRecorder; import jdk.jfr.FlightRecorder;
/* /**
* @test * @test
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.flightrecorder.TestGetPlatformRecorder * @run main/othervm jdk.jfr.api.flightrecorder.TestGetPlatformRecorder
*/ */

View File

@ -34,9 +34,10 @@ import java.util.List;
import jdk.jfr.FlightRecorder; import jdk.jfr.FlightRecorder;
import jdk.jfr.Recording; import jdk.jfr.Recording;
/* /**
* @test * @test
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.flightrecorder.TestGetRecordings * @run main/othervm jdk.jfr.api.flightrecorder.TestGetRecordings
*/ */

View File

@ -35,9 +35,10 @@ import jdk.jfr.Event;
import jdk.jfr.EventType; import jdk.jfr.EventType;
import jdk.jfr.Recording; import jdk.jfr.Recording;
/* /**
* @test * @test
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.flightrecorder.TestGetSettings * @run main/othervm jdk.jfr.api.flightrecorder.TestGetSettings
*/ */

View File

@ -28,9 +28,10 @@ package jdk.jfr.api.flightrecorder;
import jdk.jfr.FlightRecorder; import jdk.jfr.FlightRecorder;
import jdk.test.lib.Asserts; import jdk.test.lib.Asserts;
/* /**
* @test * @test
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm -XX:+FlightRecorder jdk.jfr.api.flightrecorder.TestIsAvailable true * @run main/othervm -XX:+FlightRecorder jdk.jfr.api.flightrecorder.TestIsAvailable true
* @run main/othervm -XX:-FlightRecorder jdk.jfr.api.flightrecorder.TestIsAvailable false * @run main/othervm -XX:-FlightRecorder jdk.jfr.api.flightrecorder.TestIsAvailable false

View File

@ -29,9 +29,10 @@ import jdk.jfr.FlightRecorder;
import jdk.jfr.FlightRecorderListener; import jdk.jfr.FlightRecorderListener;
import jdk.test.lib.Asserts; import jdk.test.lib.Asserts;
/* /**
* @test * @test
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.flightrecorder.TestIsInitialized * @run main/othervm jdk.jfr.api.flightrecorder.TestIsInitialized
*/ */

View File

@ -29,9 +29,10 @@ import jdk.jfr.FlightRecorder;
import jdk.jfr.Recording; import jdk.jfr.Recording;
import jdk.jfr.RecordingState; import jdk.jfr.RecordingState;
/* /**
* @test * @test
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib /test/jdk * @library /test/lib /test/jdk
* @run main/othervm jdk.jfr.api.flightrecorder.TestListener * @run main/othervm jdk.jfr.api.flightrecorder.TestListener
*/ */

View File

@ -29,9 +29,10 @@ import static jdk.test.lib.Asserts.fail;
import jdk.jfr.FlightRecorder; import jdk.jfr.FlightRecorder;
/* /**
* @test * @test
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.flightrecorder.TestListenerNull * @run main/othervm jdk.jfr.api.flightrecorder.TestListenerNull
*/ */

View File

@ -28,10 +28,11 @@ package jdk.jfr.api.flightrecorder;
import jdk.jfr.Event; import jdk.jfr.Event;
import jdk.jfr.FlightRecorder; import jdk.jfr.FlightRecorder;
/* /**
* @test * @test
* @summary Check that an IllegalArgumentException is thrown if event is added twice * @summary Check that an IllegalArgumentException is thrown if event is added twice
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.flightrecorder.TestPeriodicEventsSameHook * @run main/othervm jdk.jfr.api.flightrecorder.TestPeriodicEventsSameHook
*/ */

View File

@ -32,10 +32,11 @@ import java.util.concurrent.atomic.AtomicInteger;
import jdk.jfr.FlightRecorder; import jdk.jfr.FlightRecorder;
import jdk.jfr.FlightRecorderListener; import jdk.jfr.FlightRecorderListener;
/* /**
* @test * @test
* @summary Test Flight Recorder initialization callback is only called once * @summary Test Flight Recorder initialization callback is only called once
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.flightrecorder.TestRecorderInitializationCallback * @run main/othervm jdk.jfr.api.flightrecorder.TestRecorderInitializationCallback
*/ */

View File

@ -31,9 +31,10 @@ import jdk.jfr.Event;
import jdk.jfr.EventType; import jdk.jfr.EventType;
import jdk.jfr.FlightRecorder; import jdk.jfr.FlightRecorder;
/* /**
* @test * @test
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.flightrecorder.TestRegisterUnregisterEvent * @run main/othervm jdk.jfr.api.flightrecorder.TestRegisterUnregisterEvent
*/ */

View File

@ -34,9 +34,10 @@ import jdk.jfr.Recording;
import jdk.jfr.SettingControl; import jdk.jfr.SettingControl;
import jdk.jfr.SettingDefinition; import jdk.jfr.SettingDefinition;
/* /**
* @test * @test
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.flightrecorder.TestSettingsControl * @run main/othervm jdk.jfr.api.flightrecorder.TestSettingsControl
*/ */

View File

@ -40,8 +40,10 @@ import jdk.test.lib.Asserts;
import jdk.test.lib.jfr.Events; import jdk.test.lib.jfr.Events;
import jdk.test.lib.jfr.SimpleEvent; import jdk.test.lib.jfr.SimpleEvent;
/* @test /**
* @test
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.flightrecorder.TestSnapshot * @run main/othervm jdk.jfr.api.flightrecorder.TestSnapshot
*/ */

View File

@ -32,9 +32,10 @@ import jdk.jfr.Event;
import jdk.jfr.EventType; import jdk.jfr.EventType;
import jdk.test.lib.Asserts; import jdk.test.lib.Asserts;
/* /**
* @test * @test
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.metadata.annotations.TestCategory * @run main/othervm jdk.jfr.api.metadata.annotations.TestCategory
*/ */

View File

@ -39,9 +39,10 @@ import jdk.jfr.Timespan;
import jdk.test.lib.Asserts; import jdk.test.lib.Asserts;
import jdk.test.lib.jfr.Events; import jdk.test.lib.jfr.Events;
/* /**
* @test * @test
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.metadata.annotations.TestContentType * @run main/othervm jdk.jfr.api.metadata.annotations.TestContentType
*/ */

View File

@ -41,9 +41,10 @@ import jdk.test.lib.Asserts;
import jdk.test.lib.jfr.Events; import jdk.test.lib.jfr.Events;
import jdk.test.lib.jfr.SimpleSetting; import jdk.test.lib.jfr.SimpleSetting;
/* /**
* @test * @test
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.metadata.annotations.TestDescription * @run main/othervm jdk.jfr.api.metadata.annotations.TestDescription
*/ */

View File

@ -31,9 +31,10 @@ import java.util.Map;
import jdk.jfr.AnnotationElement; import jdk.jfr.AnnotationElement;
import jdk.jfr.MetadataDefinition; import jdk.jfr.MetadataDefinition;
/* /**
* @test * @test
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.metadata.annotations.TestDynamicAnnotation * @run main/othervm jdk.jfr.api.metadata.annotations.TestDynamicAnnotation
*/ */

View File

@ -31,9 +31,10 @@ import jdk.jfr.EventType;
import jdk.jfr.Recording; import jdk.jfr.Recording;
import jdk.test.lib.Asserts; import jdk.test.lib.Asserts;
/* /**
* @test * @test
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.metadata.annotations.TestEnabled * @run main/othervm jdk.jfr.api.metadata.annotations.TestEnabled
*/ */

View File

@ -38,9 +38,10 @@ import jdk.jfr.MetadataDefinition;
import jdk.test.lib.Asserts; import jdk.test.lib.Asserts;
import jdk.test.lib.jfr.Events; import jdk.test.lib.jfr.Events;
/* /**
* @test * @test
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.metadata.annotations.TestExperimental * @run main/othervm jdk.jfr.api.metadata.annotations.TestExperimental
*/ */

View File

@ -39,9 +39,10 @@ import jdk.jfr.Unsigned;
import jdk.jfr.ValueDescriptor; import jdk.jfr.ValueDescriptor;
import jdk.test.lib.jfr.Events; import jdk.test.lib.jfr.Events;
/* /**
* @test * @test
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.metadata.annotations.TestFieldAnnotations * @run main/othervm jdk.jfr.api.metadata.annotations.TestFieldAnnotations
*/ */

View File

@ -31,9 +31,10 @@ import jdk.jfr.MetadataDefinition;
import jdk.jfr.Timestamp; import jdk.jfr.Timestamp;
import jdk.test.lib.Asserts; import jdk.test.lib.Asserts;
/* /**
* @test * @test
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.metadata.annotations.TestHasValue * @run main/othervm jdk.jfr.api.metadata.annotations.TestHasValue
*/ */

View File

@ -48,9 +48,10 @@ import jdk.test.lib.Utils;
import jdk.test.lib.jfr.EventNames; import jdk.test.lib.jfr.EventNames;
import jdk.test.lib.jfr.Events; import jdk.test.lib.jfr.Events;
/* /**
* @test * @test
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.metadata.annotations.TestInheritedAnnotations * @run main/othervm jdk.jfr.api.metadata.annotations.TestInheritedAnnotations
*/ */

View File

@ -42,9 +42,10 @@ import jdk.test.lib.Asserts;
import jdk.test.lib.jfr.Events; import jdk.test.lib.jfr.Events;
import jdk.test.lib.jfr.SimpleSetting; import jdk.test.lib.jfr.SimpleSetting;
/* /**
* @test * @test
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.metadata.annotations.TestLabel * @run main/othervm jdk.jfr.api.metadata.annotations.TestLabel
*/ */

View File

@ -38,9 +38,10 @@ import jdk.jfr.ValueDescriptor;
import jdk.test.lib.Asserts; import jdk.test.lib.Asserts;
import jdk.test.lib.jfr.Events; import jdk.test.lib.jfr.Events;
/* /**
* @test * @test
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.metadata.annotations.TestMetadata * @run main/othervm jdk.jfr.api.metadata.annotations.TestMetadata
*/ */

View File

@ -42,9 +42,10 @@ import jdk.test.lib.Asserts;
import jdk.test.lib.jfr.Events; import jdk.test.lib.jfr.Events;
import jdk.test.lib.jfr.SimpleSetting; import jdk.test.lib.jfr.SimpleSetting;
/* /**
* @test * @test
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.metadata.annotations.TestName * @run main/othervm jdk.jfr.api.metadata.annotations.TestName
*/ */

View File

@ -31,9 +31,10 @@ import jdk.jfr.Period;
import jdk.test.lib.Asserts; import jdk.test.lib.Asserts;
import jdk.test.lib.jfr.Events; import jdk.test.lib.jfr.Events;
/* /**
* @test * @test
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.metadata.annotations.TestLabel * @run main/othervm jdk.jfr.api.metadata.annotations.TestLabel
*/ */

View File

@ -31,9 +31,10 @@ import jdk.jfr.Event;
import jdk.jfr.EventType; import jdk.jfr.EventType;
import jdk.jfr.FlightRecorder; import jdk.jfr.FlightRecorder;
/* /**
* @test * @test
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.metadata.annotations.TestRegistered * @run main/othervm jdk.jfr.api.metadata.annotations.TestRegistered
*/ */

View File

@ -29,9 +29,10 @@ import jdk.jfr.Event;
import jdk.jfr.Recording; import jdk.jfr.Recording;
import jdk.jfr.Registered; import jdk.jfr.Registered;
/* /**
* @test Tests that commit doesn't throw exception when an event has not been registered. * @test Tests that commit doesn't throw exception when an event has not been registered.
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.metadata.annotations.TestRegisteredFalseAndRunning * @run main/othervm jdk.jfr.api.metadata.annotations.TestRegisteredFalseAndRunning
* @run main/othervm -XX:FlightRecorderOptions=retransform=false jdk.jfr.api.metadata.annotations.TestRegisteredFalseAndRunning * @run main/othervm -XX:FlightRecorderOptions=retransform=false jdk.jfr.api.metadata.annotations.TestRegisteredFalseAndRunning

View File

@ -40,9 +40,10 @@ import jdk.jfr.ValueDescriptor;
import jdk.test.lib.Asserts; import jdk.test.lib.Asserts;
import jdk.test.lib.jfr.Events; import jdk.test.lib.jfr.Events;
/* /**
* @test * @test
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.metadata.annotations.TestRelational * @run main/othervm jdk.jfr.api.metadata.annotations.TestRelational
*/ */

View File

@ -34,9 +34,10 @@ import jdk.jfr.Event;
import jdk.jfr.EventType; import jdk.jfr.EventType;
import jdk.jfr.MetadataDefinition; import jdk.jfr.MetadataDefinition;
/* /**
* @test * @test
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.metadata.annotations.TestSimpleMetadataEvent * @run main/othervm jdk.jfr.api.metadata.annotations.TestSimpleMetadataEvent
*/ */

View File

@ -31,9 +31,10 @@ import jdk.jfr.StackTrace;
import jdk.test.lib.Asserts; import jdk.test.lib.Asserts;
import jdk.test.lib.jfr.Events; import jdk.test.lib.jfr.Events;
/* /**
* @test * @test
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.metadata.annotations.TestStackTrace * @run main/othervm jdk.jfr.api.metadata.annotations.TestStackTrace
*/ */

View File

@ -31,9 +31,10 @@ import jdk.jfr.Threshold;
import jdk.test.lib.Asserts; import jdk.test.lib.Asserts;
import jdk.test.lib.jfr.Events; import jdk.test.lib.jfr.Events;
/* /**
* @test * @test
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.metadata.annotations.TestThreshold * @run main/othervm jdk.jfr.api.metadata.annotations.TestThreshold
*/ */

View File

@ -51,9 +51,10 @@ import jdk.jfr.TransitionTo;
import jdk.jfr.Unsigned; import jdk.jfr.Unsigned;
import jdk.test.lib.Asserts; import jdk.test.lib.Asserts;
/* /**
* @test * @test
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.metadata.annotations.TestTypesIdentical * @run main/othervm jdk.jfr.api.metadata.annotations.TestTypesIdentical
*/ */

View File

@ -35,10 +35,11 @@ import jdk.jfr.EventType;
import jdk.jfr.Label; import jdk.jfr.Label;
import jdk.test.lib.Asserts; import jdk.test.lib.Asserts;
/* /**
* @test * @test
* @summary Test getAnnotations() * @summary Test getAnnotations()
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.metadata.eventtype.TestGetAnnotation * @run main/othervm jdk.jfr.api.metadata.eventtype.TestGetAnnotation
*/ */

View File

@ -62,10 +62,11 @@ import jdk.jfr.Unsigned;
import jdk.jfr.ValueDescriptor; import jdk.jfr.ValueDescriptor;
import jdk.test.lib.Asserts; import jdk.test.lib.Asserts;
/* /**
* @test * @test
* @summary Test for AnnotationElement.getAnnotationElements() * @summary Test for AnnotationElement.getAnnotationElements()
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.metadata.eventtype.TestGetAnnotationElements * @run main/othervm jdk.jfr.api.metadata.eventtype.TestGetAnnotationElements
*/ */

View File

@ -37,10 +37,11 @@ import jdk.jfr.Label;
import jdk.jfr.Period; import jdk.jfr.Period;
import jdk.test.lib.Asserts; import jdk.test.lib.Asserts;
/* /**
* @test * @test
* @summary Test getAnnotations() * @summary Test getAnnotations()
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.metadata.eventtype.TestGetAnnotations * @run main/othervm jdk.jfr.api.metadata.eventtype.TestGetAnnotations
*/ */

View File

@ -32,10 +32,11 @@ import jdk.jfr.Event;
import jdk.jfr.EventType; import jdk.jfr.EventType;
import jdk.test.lib.Asserts; import jdk.test.lib.Asserts;
/* /**
* @test * @test
* @summary Test setName(). * @summary Test setName().
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.metadata.eventtype.TestGetCategory * @run main/othervm jdk.jfr.api.metadata.eventtype.TestGetCategory
*/ */

View File

@ -31,10 +31,11 @@ import jdk.jfr.FlightRecorder;
import jdk.test.lib.Asserts; import jdk.test.lib.Asserts;
import jdk.test.lib.jfr.Events; import jdk.test.lib.jfr.Events;
/* /**
* @test * @test
* @summary Test getDefaultValues() * @summary Test getDefaultValues()
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib /test/jdk * @library /test/lib /test/jdk
* @run main/othervm jdk.jfr.api.metadata.eventtype.TestGetDefaultValues * @run main/othervm jdk.jfr.api.metadata.eventtype.TestGetDefaultValues
*/ */

View File

@ -36,10 +36,11 @@ import jdk.jfr.EventType;
import jdk.jfr.Label; import jdk.jfr.Label;
import jdk.test.lib.Asserts; import jdk.test.lib.Asserts;
/* /**
* @test * @test
* @summary Test descriptive annotations for EventType * @summary Test descriptive annotations for EventType
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.metadata.eventtype.TestGetDescription * @run main/othervm jdk.jfr.api.metadata.eventtype.TestGetDescription
*/ */

View File

@ -29,10 +29,11 @@ import jdk.jfr.Event;
import jdk.jfr.EventType; import jdk.jfr.EventType;
import jdk.test.lib.Asserts; import jdk.test.lib.Asserts;
/* /**
* @test * @test
* @summary Test getEventType() * @summary Test getEventType()
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.metadata.eventtype.TestGetEventType * @run main/othervm jdk.jfr.api.metadata.eventtype.TestGetEventType
*/ */

View File

@ -30,10 +30,11 @@ import jdk.jfr.EventType;
import jdk.jfr.ValueDescriptor; import jdk.jfr.ValueDescriptor;
import jdk.test.lib.Asserts; import jdk.test.lib.Asserts;
/* /**
* @test * @test
* @summary Test getField() * @summary Test getField()
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.metadata.eventtype.TestGetField * @run main/othervm jdk.jfr.api.metadata.eventtype.TestGetField
*/ */

View File

@ -33,10 +33,11 @@ import jdk.jfr.EventType;
import jdk.jfr.ValueDescriptor; import jdk.jfr.ValueDescriptor;
import jdk.test.lib.Asserts; import jdk.test.lib.Asserts;
/* /**
* @test * @test
* @summary Test getFields() * @summary Test getFields()
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib * @library /test/lib
* @run main/othervm jdk.jfr.api.metadata.eventtype.TestGetFields * @run main/othervm jdk.jfr.api.metadata.eventtype.TestGetFields
*/ */

View File

@ -31,10 +31,11 @@ import jdk.jfr.EventType;
import jdk.jfr.SettingDescriptor; import jdk.jfr.SettingDescriptor;
import jdk.test.lib.Asserts; import jdk.test.lib.Asserts;
/* /**
* @test * @test
* @summary Test getSettings() * @summary Test getSettings()
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib /test/jdk * @library /test/lib /test/jdk
* @run main/othervm jdk.jfr.api.metadata.eventtype.TestGetSettings * @run main/othervm jdk.jfr.api.metadata.eventtype.TestGetSettings
*/ */

View File

@ -38,10 +38,11 @@ import jdk.jfr.consumer.RecordingFile;
import jdk.jfr.internal.JVM; import jdk.jfr.internal.JVM;
import jdk.test.lib.Utils; import jdk.test.lib.Utils;
/* /**
* @test * @test
* @key jfr * @key jfr
* @summary Test that verifies event metadata is removed when an event class is unloaded. * @summary Test that verifies event metadata is removed when an event class is unloaded.
* @requires vm.hasJFR
* *
* @library /test/lib * @library /test/lib
* @modules jdk.jfr/jdk.jfr.internal * @modules jdk.jfr/jdk.jfr.internal

View File

@ -29,10 +29,11 @@ import jdk.jfr.SettingDescriptor;
import jdk.test.lib.Asserts; import jdk.test.lib.Asserts;
import jdk.test.lib.jfr.Events; import jdk.test.lib.jfr.Events;
/* /**
* @test * @test
* @summary Test SettingDescriptor.getName() * @summary Test SettingDescriptor.getName()
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib /test/jdk * @library /test/lib /test/jdk
* @run main/othervm jdk.jfr.api.metadata.settingdescriptor.TestDefaultValue * @run main/othervm jdk.jfr.api.metadata.settingdescriptor.TestDefaultValue
*/ */

View File

@ -33,10 +33,11 @@ import jdk.jfr.Timestamp;
import jdk.test.lib.Asserts; import jdk.test.lib.Asserts;
import jdk.test.lib.jfr.Events; import jdk.test.lib.jfr.Events;
/* /**
* @test * @test
* @summary Test SettingDescriptor.getAnnotation(); * @summary Test SettingDescriptor.getAnnotation();
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib /test/jdk * @library /test/lib /test/jdk
* @run main/othervm jdk.jfr.api.metadata.settingdescriptor.TestGetAnnotation * @run main/othervm jdk.jfr.api.metadata.settingdescriptor.TestGetAnnotation
*/ */

View File

@ -36,10 +36,11 @@ import jdk.jfr.Timespan;
import jdk.test.lib.Asserts; import jdk.test.lib.Asserts;
import jdk.test.lib.jfr.Events; import jdk.test.lib.jfr.Events;
/* /**
* @test * @test
* @summary Test SettingDescriptor.getAnnotationElements() * @summary Test SettingDescriptor.getAnnotationElements()
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib /test/jdk * @library /test/lib /test/jdk
* @run main/othervm jdk.jfr.api.metadata.settingdescriptor.TestGetAnnotationElement * @run main/othervm jdk.jfr.api.metadata.settingdescriptor.TestGetAnnotationElement
*/ */

View File

@ -34,10 +34,11 @@ import jdk.jfr.Timestamp;
import jdk.test.lib.Asserts; import jdk.test.lib.Asserts;
import jdk.test.lib.jfr.Events; import jdk.test.lib.jfr.Events;
/* /**
* @test * @test
* @summary Test SettingDescriptor.getContentType() * @summary Test SettingDescriptor.getContentType()
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib /test/jdk * @library /test/lib /test/jdk
* @run main/othervm jdk.jfr.api.metadata.settingdescriptor.TestGetDescription * @run main/othervm jdk.jfr.api.metadata.settingdescriptor.TestGetDescription
*/ */

View File

@ -31,10 +31,11 @@ import jdk.jfr.SettingDescriptor;
import jdk.test.lib.Asserts; import jdk.test.lib.Asserts;
import jdk.test.lib.jfr.Events; import jdk.test.lib.jfr.Events;
/* /**
* @test * @test
* @summary Test SettingDescriptor.getDescription() * @summary Test SettingDescriptor.getDescription()
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib /test/jdk * @library /test/lib /test/jdk
* @run main/othervm jdk.jfr.api.metadata.settingdescriptor.TestGetDescription * @run main/othervm jdk.jfr.api.metadata.settingdescriptor.TestGetDescription
*/ */

View File

@ -31,10 +31,11 @@ import jdk.jfr.SettingDescriptor;
import jdk.test.lib.Asserts; import jdk.test.lib.Asserts;
import jdk.test.lib.jfr.Events; import jdk.test.lib.jfr.Events;
/* /**
* @test * @test
* @summary Test SettingDescriptor.getLabel() * @summary Test SettingDescriptor.getLabel()
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib /test/jdk * @library /test/lib /test/jdk
* @run main/othervm jdk.jfr.api.metadata.settingdescriptor.TestGetLabel * @run main/othervm jdk.jfr.api.metadata.settingdescriptor.TestGetLabel
*/ */

View File

@ -28,10 +28,11 @@ import jdk.jfr.EventType;
import jdk.jfr.SettingDescriptor; import jdk.jfr.SettingDescriptor;
import jdk.test.lib.jfr.Events; import jdk.test.lib.jfr.Events;
/* /**
* @test * @test
* @summary Test SettingDescriptor.getName() * @summary Test SettingDescriptor.getName()
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib /test/jdk * @library /test/lib /test/jdk
* @run main/othervm jdk.jfr.api.metadata.settingdescriptor.TestGetName * @run main/othervm jdk.jfr.api.metadata.settingdescriptor.TestGetName
*/ */

View File

@ -29,10 +29,11 @@ import jdk.jfr.SettingDescriptor;
import jdk.test.lib.Asserts; import jdk.test.lib.Asserts;
import jdk.test.lib.jfr.Events; import jdk.test.lib.jfr.Events;
/* /**
* @test * @test
* @summary Test SettingDescriptor.getTypeId() * @summary Test SettingDescriptor.getTypeId()
* @key jfr * @key jfr
* @requires vm.hasJFR
* @library /test/lib /test/jdk * @library /test/lib /test/jdk
* @run main/othervm jdk.jfr.api.metadata.settingdescriptor.TestGetTypeId * @run main/othervm jdk.jfr.api.metadata.settingdescriptor.TestGetTypeId
*/ */

Some files were not shown because too many files have changed in this diff Show More