test/hotspot/jtreg/testlibrary/jittester/src/jdk/test/lib/jittester/AotTestGeneratorsFactory.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
26 import java.util.ArrayList; |
26 import java.util.ArrayList; |
27 import java.util.List; |
27 import java.util.List; |
28 import java.util.function.Function; |
28 import java.util.function.Function; |
29 |
29 |
30 public class AotTestGeneratorsFactory implements Function<String[], List<TestsGenerator>> { |
30 public class AotTestGeneratorsFactory implements Function<String[], List<TestsGenerator>> { |
31 private static final String AOT_OPTIONS = "-XX:+UseAOT -XX:AOTLibrary=./aottest.so"; |
31 private static final String AOT_OPTIONS |
|
32 = "-XX:+UnlockExperimentalVMOptions -XX:+UseAOT -XX:AOTLibrary=./aottest.so"; |
32 private static final String AOT_COMPILER_BUILD_ACTION |
33 private static final String AOT_COMPILER_BUILD_ACTION |
33 = "@build compiler.aot.AotCompiler"; |
34 = "@build compiler.aot.AotCompiler"; |
34 private static final String AOT_COMPILER_RUN_ACTION_PREFIX |
35 private static final String AOT_COMPILER_RUN_ACTION_PREFIX |
35 = "@run driver compiler.aot.AotCompiler -extraopt -Xmixed -libname aottest.so -class "; |
36 = "@run driver compiler.aot.AotCompiler -extraopt -Xmixed -libname aottest.so -class "; |
36 |
37 |