< prev index next >
src/share/vm/runtime/javaCalls.cpp
Print this page
@@ -341,17 +341,11 @@
// not fully initialized! (bad Java programming style)
assert(holder->is_linked(), "rewriting must have taken place");
}
#endif
-
- assert(thread->can_call_java(), "cannot compile from the native compiler");
- if (CompilationPolicy::must_be_compiled(method)) {
- CompileBroker::compile_method(method, InvocationEntryBci,
- CompilationPolicy::policy()->initial_compile_level(),
- methodHandle(), 0, "must_be_compiled", CHECK);
- }
+ CompilationPolicy::compile_if_required(method, CHECK);
// Since the call stub sets up like the interpreter we call the from_interpreted_entry
// so we can go compiled via a i2c. Otherwise initial entry method will always
// run interpreted.
address entry_point = method->from_interpreted_entry();
< prev index next >