hotspot/src/share/vm/runtime/javaCalls.cpp
changeset 38139 cf6f5c1b7205
parent 35479 62c12ca7a45e
child 38719 133bf85c3f36
equal deleted inserted replaced
38138:8514e24123c8 38139:cf6f5c1b7205
   341     // not fully initialized! (bad Java programming style)
   341     // not fully initialized! (bad Java programming style)
   342     assert(holder->is_linked(), "rewriting must have taken place");
   342     assert(holder->is_linked(), "rewriting must have taken place");
   343   }
   343   }
   344 #endif
   344 #endif
   345 
   345 
   346 
   346   CompilationPolicy::compile_if_required(method, CHECK);
   347   assert(thread->can_call_java(), "cannot compile from the native compiler");
       
   348   if (CompilationPolicy::must_be_compiled(method)) {
       
   349     CompileBroker::compile_method(method, InvocationEntryBci,
       
   350                                   CompilationPolicy::policy()->initial_compile_level(),
       
   351                                   methodHandle(), 0, "must_be_compiled", CHECK);
       
   352   }
       
   353 
   347 
   354   // Since the call stub sets up like the interpreter we call the from_interpreted_entry
   348   // Since the call stub sets up like the interpreter we call the from_interpreted_entry
   355   // so we can go compiled via a i2c. Otherwise initial entry method will always
   349   // so we can go compiled via a i2c. Otherwise initial entry method will always
   356   // run interpreted.
   350   // run interpreted.
   357   address entry_point = method->from_interpreted_entry();
   351   address entry_point = method->from_interpreted_entry();