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.
if ! HOTSPOT_CHECK_JVM_VARIANT(zero); then
if test "x$OPENJDK_TARGET_OS" != xlinux || test "x$OPENJDK_TARGET_CPU" != xsparcv9; then
NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES jfr"
if test "x$OPENJDK_TARGET_OS" != xaix; then
if test "x$OPENJDK_TARGET_OS" != xlinux || test "x$OPENJDK_TARGET_CPU" != xsparcv9; then
NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES jfr"
fi
fi
fi
@ -459,7 +461,7 @@ AC_DEFUN_ONCE([HOTSPOT_SETUP_JVM_FEATURES],
JVM_FEATURES_aot="aot"
fi
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])
else
AC_MSG_RESULT([no])

View File

@ -1785,6 +1785,14 @@ WB_ENTRY(jboolean, WB_IsJavaHeapArchiveSupported(JNIEnv* env))
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
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"areOpenArchiveHeapObjectsMapped", CC"()Z", (void*)&WB_AreOpenArchiveHeapObjectsMapped},
{CC"isCDSIncludedInVmBuild", CC"()Z", (void*)&WB_IsCDSIncludedInVmBuild },
{CC"isJFRIncludedInVmBuild", CC"()Z", (void*)&WB_IsJFRIncludedInVmBuild },
{CC"isJavaHeapArchiveSupported", CC"()Z", (void*)&WB_IsJavaHeapArchiveSupported },
{CC"clearInlineCaches0", CC"(Z)V", (void*)&WB_ClearInlineCaches },

View File

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

View File

@ -22,10 +22,10 @@
*
*/
/*
/**
* @test
* @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
* @modules jdk.jfr
* @build Hello GetFlightRecorder

View File

@ -22,14 +22,14 @@
*
*/
/*
/**
* @test
* @bug 8145221
* @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.
* This is to test the safe handling of trampoline functions by the
* profiler.
* @requires vm.cds
* @requires vm.hasJFR & vm.cds
* @library /test/lib /test/hotspot/jtreg/runtime/appcds
* @modules java.base/jdk.internal.misc
* java.management

View File

@ -22,10 +22,10 @@
*
*/
/*
/**
* @test
* @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
* @modules java.base/jdk.internal.misc
* @modules java.management
@ -34,7 +34,21 @@
* @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.Platform;
public class FlagCombo {
public static void main(String[] args) throws Exception {
@ -45,8 +59,10 @@ public class FlagCombo {
SharedStringsUtils.runWithArchive("HelloString", "-XX:+UseG1GC");
SharedStringsUtils.runWithArchiveAuto("HelloString",
"-XX:StartFlightRecording=dumponexit=true");
if (args.length == 0) {
SharedStringsUtils.runWithArchiveAuto("HelloString",
"-XX:StartFlightRecording=dumponexit=true");
}
SharedStringsUtils.runWithArchive("HelloString", "-XX:+UnlockDiagnosticVMOptions",
"-XX:NativeMemoryTracking=detail", "-XX:+PrintNMTStatistics");

View File

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

View File

@ -35,9 +35,10 @@ import jdk.jfr.consumer.RecordedThread;
import jdk.test.lib.Asserts;
import jdk.test.lib.jfr.Events;
/*
/**
* @test
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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.SimpleEvent;
/*
/**
* @test
* @summary Verifies that a recorded JFR event has the correct stack trace info
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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;
/*
/**
* @test
* @key jfr
* @requires vm.hasJFR
*
* @library /test/lib
* @modules java.scripting

View File

@ -39,9 +39,10 @@ import jdk.test.lib.jfr.Events;
import jdk.test.lib.jfr.SimpleEvent;
/*
/**
* @test
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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;
/*
/**
* @test
* @summary Reads the recorded file two times and verifies that both reads are the same
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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.TestClassLoader;
/*
/**
* @test
* @summary Verifies the methods of the RecordedClassLoader
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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.jfr.Events;
/*
/**
* @test
* @summary Verifies the methods of the RecordedEvent
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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.SimpleEvent;
/*
/**
* @test
* @summary Tests that the RecordedEvent.getThread() returns th expected info
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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.Utils;
/*
/**
* @test
* @summary Tests that the RecordedEvent.getThread() returns th expected info
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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;
/*
/**
* @test
* @summary Simple test for RecordedFrame APIs
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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

View File

@ -40,9 +40,10 @@ import jdk.test.lib.jfr.EventNames;
import jdk.test.lib.jfr.Events;
import jdk.test.lib.jfr.RecurseThread;
/*
/**
* @test
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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.SimpleEvent;
/*
/**
* @test
* @summary Tests that an instant event gets recorded with its start time equal to its end time
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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;
/*
/**
* @test
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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.jfr.Events;
/*
/**
* @test
* @summary Verifies the methods of the RecordedObject
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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.SimpleEvent;
/*
/**
* @test
* @summary Tests getParent method in RecordedThreadGroup
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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.Utils;
/*
/**
* @test
* @summary Verifies that all methods in RecordingFIle are working
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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.SimpleEvent;
/*
/**
* @test
* @summary Verifies that RecordingFile.readEvent() throws EOF when past the last record
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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.SimpleEvent;
/*
/**
* @test
* @summary Tests that chunks are read in order and constant pools from multiple chunks can be read
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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.jfr.Events;
/*
/**
* @test
* @summary Verifies that a single JFR event is recorded as expected
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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.jfr.Events;
/*
/**
* @test
* @summary Sanity checks that RecordedEvent#toString returns something valid
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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;
/*
/**
* @test
* @summary Verifies that the recorded value descriptors are correct
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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.jfr.Events;
/*
/**
* @test
* @summary Tests that abstract events are not part of metadata
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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.SimpleEvent;
/*
/**
* @test
* @summary Test for RecordedEvent.getDuration()
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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.jfr.Events;
/*
/**
* @test
* @summary Test enable/disable event and verify recording has expected events.
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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.jfr.Events;
/*
/**
* @test
* @summary Tests that a cloned event can be successfully committed.
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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.jfr.Events;
/*
/**
* @test
* @summary Test enable/disable event and verify recording has expected events.
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @run main/othervm jdk.jfr.api.event.TestEnableDisable
*/

View File

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

View File

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

View File

@ -37,10 +37,11 @@ import jdk.jfr.Registered;
import jdk.test.lib.Asserts;
/*
/**
* @test
* @summary EventFactory register/unregister API test
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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.jfr.Events;
/*
/**
* @test
* @summary Test with event class inheritance
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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.SimpleEvent;
/*
/**
* @test
* @summary Test for RecordedEvent.getDuration()
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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.jfr.SimpleEvent;
/*
/**
* @test
* @summary Test Event.isEnabled()
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @run main/othervm jdk.jfr.api.event.TestIsEnabled
*/

View File

@ -30,10 +30,11 @@ import jdk.jfr.EventType;
import jdk.jfr.Recording;
import jdk.test.lib.Asserts;
/*
/**
* @test
* @summary Test Event.isEnabled() with multiple recordings
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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.jfr.Events;
/*
/**
* @test
* @summary Use custom event that reuse method names begin, end and commit.
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @run main/othervm jdk.jfr.api.event.TestOwnCommit
*/

View File

@ -31,10 +31,11 @@ import jdk.jfr.Event;
import jdk.jfr.Recording;
import jdk.test.lib.Asserts;
/*
/**
* @test
* @summary Test enable/disable event and verify recording has expected events.
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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.test.lib.jfr.Events;
/*
/**
* @test
* @summary Enable an event from a static function in the event.
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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.test.lib.jfr.Events;
/*
/**
* @test
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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;
/*
/**
* @test
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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.RecordingState;
/*
/**
* @test
* @key jfr
* @requires vm.hasJFR
* @library /test/lib /test/jdk
* @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.Recording;
/*
/**
* @test
* @summary
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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.FlightRecorderListener;
/*
/**
* @test
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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.test.lib.jfr.Events;
/*
/**
* @test
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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;
/*
/**
* @test
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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.Recording;
/*
/**
* @test
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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.Recording;
/*
/**
* @test
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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.test.lib.Asserts;
/*
/**
* @test
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @run main/othervm -XX:+FlightRecorder jdk.jfr.api.flightrecorder.TestIsAvailable true
* @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.test.lib.Asserts;
/*
/**
* @test
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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.RecordingState;
/*
/**
* @test
* @key jfr
* @requires vm.hasJFR
* @library /test/lib /test/jdk
* @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;
/*
/**
* @test
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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.FlightRecorder;
/*
/**
* @test
* @summary Check that an IllegalArgumentException is thrown if event is added twice
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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.FlightRecorderListener;
/*
/**
* @test
* @summary Test Flight Recorder initialization callback is only called once
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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.FlightRecorder;
/*
/**
* @test
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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.SettingDefinition;
/*
/**
* @test
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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.SimpleEvent;
/* @test
/**
* @test
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @run main/othervm jdk.jfr.api.flightrecorder.TestSnapshot
*/

View File

@ -32,9 +32,10 @@ import jdk.jfr.Event;
import jdk.jfr.EventType;
import jdk.test.lib.Asserts;
/*
/**
* @test
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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.jfr.Events;
/*
/**
* @test
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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.SimpleSetting;
/*
/**
* @test
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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.MetadataDefinition;
/*
/**
* @test
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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.test.lib.Asserts;
/*
/**
* @test
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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.jfr.Events;
/*
/**
* @test
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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.test.lib.jfr.Events;
/*
/**
* @test
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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.test.lib.Asserts;
/*
/**
* @test
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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.Events;
/*
/**
* @test
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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.SimpleSetting;
/*
/**
* @test
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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.jfr.Events;
/*
/**
* @test
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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.SimpleSetting;
/*
/**
* @test
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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.jfr.Events;
/*
/**
* @test
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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.FlightRecorder;
/*
/**
* @test
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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.Registered;
/*
/**
* @test Tests that commit doesn't throw exception when an event has not been registered.
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @run main/othervm 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.jfr.Events;
/*
/**
* @test
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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.MetadataDefinition;
/*
/**
* @test
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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.jfr.Events;
/*
/**
* @test
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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.jfr.Events;
/*
/**
* @test
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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.test.lib.Asserts;
/*
/**
* @test
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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.test.lib.Asserts;
/*
/**
* @test
* @summary Test getAnnotations()
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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.test.lib.Asserts;
/*
/**
* @test
* @summary Test for AnnotationElement.getAnnotationElements()
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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.test.lib.Asserts;
/*
/**
* @test
* @summary Test getAnnotations()
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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.test.lib.Asserts;
/*
/**
* @test
* @summary Test setName().
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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.jfr.Events;
/*
/**
* @test
* @summary Test getDefaultValues()
* @key jfr
* @requires vm.hasJFR
* @library /test/lib /test/jdk
* @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.test.lib.Asserts;
/*
/**
* @test
* @summary Test descriptive annotations for EventType
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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.test.lib.Asserts;
/*
/**
* @test
* @summary Test getEventType()
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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.test.lib.Asserts;
/*
/**
* @test
* @summary Test getField()
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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.test.lib.Asserts;
/*
/**
* @test
* @summary Test getFields()
* @key jfr
* @requires vm.hasJFR
* @library /test/lib
* @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.test.lib.Asserts;
/*
/**
* @test
* @summary Test getSettings()
* @key jfr
* @requires vm.hasJFR
* @library /test/lib /test/jdk
* @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.test.lib.Utils;
/*
/**
* @test
* @key jfr
* @summary Test that verifies event metadata is removed when an event class is unloaded.
* @requires vm.hasJFR
*
* @library /test/lib
* @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.jfr.Events;
/*
/**
* @test
* @summary Test SettingDescriptor.getName()
* @key jfr
* @requires vm.hasJFR
* @library /test/lib /test/jdk
* @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.jfr.Events;
/*
/**
* @test
* @summary Test SettingDescriptor.getAnnotation();
* @key jfr
* @requires vm.hasJFR
* @library /test/lib /test/jdk
* @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.jfr.Events;
/*
/**
* @test
* @summary Test SettingDescriptor.getAnnotationElements()
* @key jfr
* @requires vm.hasJFR
* @library /test/lib /test/jdk
* @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.jfr.Events;
/*
/**
* @test
* @summary Test SettingDescriptor.getContentType()
* @key jfr
* @requires vm.hasJFR
* @library /test/lib /test/jdk
* @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.jfr.Events;
/*
/**
* @test
* @summary Test SettingDescriptor.getDescription()
* @key jfr
* @requires vm.hasJFR
* @library /test/lib /test/jdk
* @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.jfr.Events;
/*
/**
* @test
* @summary Test SettingDescriptor.getLabel()
* @key jfr
* @requires vm.hasJFR
* @library /test/lib /test/jdk
* @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.test.lib.jfr.Events;
/*
/**
* @test
* @summary Test SettingDescriptor.getName()
* @key jfr
* @requires vm.hasJFR
* @library /test/lib /test/jdk
* @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.jfr.Events;
/*
/**
* @test
* @summary Test SettingDescriptor.getTypeId()
* @key jfr
* @requires vm.hasJFR
* @library /test/lib /test/jdk
* @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