14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 import java.io.PrintWriter;
25 import java.io.File;
26
27 import com.oracle.java.testlibrary.*;
28
29 /*
30 * @test CheckCompileCommandOption
31 * @bug 8055286 8056964 8059847 8069035
32 * @summary "Checks parsing of -XX:CompileCommand=option"
33 * @library /testlibrary
34 * @run main CheckCompileCommandOption
35 */
36
37 public class CheckCompileCommandOption {
38
39 // Currently, two types of trailing options can be used with
40 // -XX:CompileCommand=option
41 //
42 // (1) CompileCommand=option,Klass::method,flag
43 // (2) CompileCommand=option,Klass::method,type,flag,value
44 //
45 // Type (1) is used to enable a boolean flag for a method.
46 //
47 // Type (2) is used to support flags with a value. Values can
48 // have the the following types: intx, uintx, bool, ccstr,
49 // ccstrlist, and double.
50
51 private static final String[][] FILE_ARGUMENTS = {
52 {
53 "-XX:CompileCommandFile=" + new File(System.getProperty("test.src", "."), "command1.txt"),
|
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 import java.io.PrintWriter;
25 import java.io.File;
26
27 import com.oracle.java.testlibrary.*;
28
29 /*
30 * @test CheckCompileCommandOption
31 * @bug 8055286 8056964 8059847 8069035
32 * @summary "Checks parsing of -XX:CompileCommand=option"
33 * @library /testlibrary
34 * @build com.oracle.java.testlibrary.*
35 * @run main CheckCompileCommandOption
36 */
37
38 public class CheckCompileCommandOption {
39
40 // Currently, two types of trailing options can be used with
41 // -XX:CompileCommand=option
42 //
43 // (1) CompileCommand=option,Klass::method,flag
44 // (2) CompileCommand=option,Klass::method,type,flag,value
45 //
46 // Type (1) is used to enable a boolean flag for a method.
47 //
48 // Type (2) is used to support flags with a value. Values can
49 // have the the following types: intx, uintx, bool, ccstr,
50 // ccstrlist, and double.
51
52 private static final String[][] FILE_ARGUMENTS = {
53 {
54 "-XX:CompileCommandFile=" + new File(System.getProperty("test.src", "."), "command1.txt"),
|