< prev index next > test/jdk/jdk/jfr/event/runtime/TestSyncOnValueBasedClassEvent.java
Print this page
* @bug 8242263
* @requires vm.hasJFR
* @key jfr
* @library /test/lib
* @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:DiagnoseSyncOnValueBasedClasses=2 jdk.jfr.event.runtime.TestSyncOnValueBasedClassEvent
+ * @run main/othervm --enable-preview -XX:+UnlockDiagnosticVMOptions -XX:DiagnoseSyncOnValueBasedClasses=2 jdk.jfr.event.runtime.TestSyncOnValueBasedClassEvent
*/
public class TestSyncOnValueBasedClassEvent {
static final String EVENT_NAME = EventNames.SyncOnValueBasedClass;
static String[] classesWanted = {"java/lang/Character", "java/lang/Boolean", "java/lang/Byte", "java/lang/Short",
"java/lang/Integer", "java/lang/Long", "java/lang/Float", "java/lang/Double",
- "java/time/Duration", "java/util/OptionalInt", "java/lang/Runtime$Version"};
+ "java/lang/Runtime$Version"};
static List<Object> testObjects = new ArrayList<Object>();
static Integer counter = 0;
private static void initTestObjects() {
testObjects.add(Character.valueOf('H'));
testObjects.add(Short.valueOf((short)0x4000));
testObjects.add(Integer.valueOf(0x40000000));
testObjects.add(Long.valueOf(0x4000000000000000L));
testObjects.add(Float.valueOf(1.20f));
testObjects.add(Double.valueOf(1.2345));
- testObjects.add(Duration.ofMillis(5));
- testObjects.add(OptionalInt.of(10));
testObjects.add(Runtime.version());
}
public static void main(String[] args) throws Throwable {
initTestObjects();
< prev index next >