hotspot/src/share/vm/prims/methodHandleWalk.cpp
changeset 6453 970dc585ab63
parent 6064 71e316283a85
child 6463 f4362c8da849
equal deleted inserted replaced
6452:cc624b341ab2 6453:970dc585ab63
   977   // instanceKlass* ik = instanceKlass::cast(klass);
   977   // instanceKlass* ik = instanceKlass::cast(klass);
   978   // tty->print_cr("MethodHandleCompiler::make_invoke: %s %s.%s%s", Bytecodes::name(op), ik->external_name(), name->as_C_string(), signature->as_C_string());
   978   // tty->print_cr("MethodHandleCompiler::make_invoke: %s %s.%s%s", Bytecodes::name(op), ik->external_name(), name->as_C_string(), signature->as_C_string());
   979 
   979 
   980   // Inline the method.
   980   // Inline the method.
   981   InvocationCounter* ic = m->invocation_counter();
   981   InvocationCounter* ic = m->invocation_counter();
   982   ic->set_carry();
   982   ic->set_carry_flag();
   983 
   983 
   984   for (int i = 0; i < argc; i++) {
   984   for (int i = 0; i < argc; i++) {
   985     ArgToken arg = argv[i];
   985     ArgToken arg = argv[i];
   986     TokenType tt = arg.token_type();
   986     TokenType tt = arg.token_type();
   987     BasicType bt = arg.basic_type();
   987     BasicType bt = arg.basic_type();
  1207   m->set_exception_table(exception_handlers());
  1207   m->set_exception_table(exception_handlers());
  1208 
  1208 
  1209   // Set the carry bit of the invocation counter to force inlining of
  1209   // Set the carry bit of the invocation counter to force inlining of
  1210   // the adapter.
  1210   // the adapter.
  1211   InvocationCounter* ic = m->invocation_counter();
  1211   InvocationCounter* ic = m->invocation_counter();
  1212   ic->set_carry();
  1212   ic->set_carry_flag();
  1213 
  1213 
  1214   // Rewrite the method and set up the constant pool cache.
  1214   // Rewrite the method and set up the constant pool cache.
  1215   objArrayOop m_array = oopFactory::new_system_objArray(1, CHECK_(nullHandle));
  1215   objArrayOop m_array = oopFactory::new_system_objArray(1, CHECK_(nullHandle));
  1216   objArrayHandle methods(THREAD, m_array);
  1216   objArrayHandle methods(THREAD, m_array);
  1217   methods->obj_at_put(0, m());
  1217   methods->obj_at_put(0, m());