--- old/src/share/vm/opto/c2compiler.cpp 2015-07-14 18:39:24.183577153 +0200 +++ new/src/share/vm/opto/c2compiler.cpp 2015-07-14 18:39:23.827577144 +0200 @@ -79,7 +79,6 @@ return OptoRuntime::generate(thread->env()); } - void C2Compiler::initialize() { // The first compiler thread that gets here will initialize the // small amount of global state (and runtime stubs) that C2 needs. @@ -154,11 +153,21 @@ } } - void C2Compiler::print_timers() { Compile::print_timers(); } +bool C2Compiler::is_intrinsic_available_for(methodHandle method, methodHandle compilation_context) { + // Assume a non-virtual dispatch. A virtual dispatch is + // possible for only a limited set of available intrinsics whereas + // a non-virtual dispatch is possible for all available intrinsics. + return Compile::is_intrinsic_available_for(method(), compilation_context(), false); +} + +bool C2Compiler::is_intrinsic_available_for(methodHandle method) { + return Compile::is_intrinsic_available_for(method(), NULL, false); +} + int C2Compiler::initial_code_buffer_size() { assert(SegmentedCodeCache, "Should be only used with a segmented code cache"); return Compile::MAX_inst_size + Compile::MAX_locs_size + initial_const_capacity;