< prev index next >

test/compiler/compilercontrol/share/actions/CompileAction.java

Print this page




  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  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 package compiler.compilercontrol.share.actions;
  25 
  26 import compiler.compilercontrol.share.pool.PoolHelper;
  27 import compiler.compilercontrol.share.scenario.State;
  28 import compiler.testlibrary.CompilerUtils;
  29 import jdk.test.lib.Asserts;
  30 import jdk.test.lib.Pair;
  31 import jdk.test.lib.Utils;
  32 import sun.hotspot.WhiteBox;
  33 
  34 import java.lang.reflect.Executable;
  35 import java.util.List;
  36 import java.util.concurrent.Callable;
  37 
  38 public class CompileAction {
  39     private static final WhiteBox WHITE_BOX = WhiteBox.getWhiteBox();
  40     private static final int[] COMP_LEVELS;
  41     private static final List<Pair<Executable, Callable<?>>> METHODS
  42             = new PoolHelper().getAllMethods();
  43     private static final int EXEC_AMOUNT = 100;
  44 
  45     static {
  46         COMP_LEVELS = CompilerUtils.getAvailableCompilationLevels();
  47         if (COMP_LEVELS.length == 0) {
  48             throw new Error("TESTBUG: test requires JIT " +
  49                     "compiler to be available");
  50         }




  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  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 package compiler.compilercontrol.share.actions;
  25 
  26 import compiler.compilercontrol.share.pool.PoolHelper;
  27 import compiler.compilercontrol.share.scenario.State;
  28 import compiler.testlibrary.CompilerUtils;
  29 import jdk.test.lib.Asserts;
  30 import jdk.test.lib.util.Pair;
  31 import jdk.test.lib.Utils;
  32 import sun.hotspot.WhiteBox;
  33 
  34 import java.lang.reflect.Executable;
  35 import java.util.List;
  36 import java.util.concurrent.Callable;
  37 
  38 public class CompileAction {
  39     private static final WhiteBox WHITE_BOX = WhiteBox.getWhiteBox();
  40     private static final int[] COMP_LEVELS;
  41     private static final List<Pair<Executable, Callable<?>>> METHODS
  42             = new PoolHelper().getAllMethods();
  43     private static final int EXEC_AMOUNT = 100;
  44 
  45     static {
  46         COMP_LEVELS = CompilerUtils.getAvailableCompilationLevels();
  47         if (COMP_LEVELS.length == 0) {
  48             throw new Error("TESTBUG: test requires JIT " +
  49                     "compiler to be available");
  50         }


< prev index next >