--- a/test/hotspot/jtreg/serviceability/sa/TestRevPtrsForInvokeDynamic.java Tue Jun 26 09:52:21 2018 -0400
+++ b/test/hotspot/jtreg/serviceability/sa/TestRevPtrsForInvokeDynamic.java Mon Jun 25 23:04:21 2018 +0200
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -36,10 +36,10 @@
import jdk.test.lib.process.ProcessTools;
import jdk.test.lib.Utils;
-/*
+/**
* @test
* @library /test/lib
- * @requires os.family != "mac"
+ * @requires vm.hasSAandCanAttach & os.family != "mac"
* @modules java.base/jdk.internal.misc
* jdk.hotspot.agent/sun.jvm.hotspot
* jdk.hotspot.agent/sun.jvm.hotspot.utilities
@@ -80,12 +80,6 @@
}
public static void main (String... args) throws Exception {
- if (!Platform.shouldSAAttach()) {
- System.out.println(
- "SA attach not expected to work - test skipped.");
- return;
- }
-
if (args == null || args.length == 0) {
try {
List<String> vmArgs = new ArrayList<String>();