mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 11:34:38 +02:00
7001363: java/dyn/InvokeDynamic should not be a well-known class in the JVM
Because of the removal of language support, the JDK 7 API for JSR 292 no longer includes a public class named java/dyn/InvokeDynamic. Reviewed-by: jrose, kvn
This commit is contained in:
parent
8006fe8f75
commit
36b4f60585
6 changed files with 8 additions and 22 deletions
|
@ -968,16 +968,11 @@ MethodHandleCompiler::make_invoke(methodOop m, vmIntrinsics::ID iid,
|
|||
|
||||
if (tailcall) {
|
||||
// Actually, in order to make these methods more recognizable,
|
||||
// let's put them in holder classes MethodHandle and InvokeDynamic.
|
||||
// That way stack walkers and compiler heuristics can recognize them.
|
||||
_target_klass = (for_invokedynamic()
|
||||
? SystemDictionary::InvokeDynamic_klass()
|
||||
: SystemDictionary::MethodHandle_klass());
|
||||
// let's put them in holder class MethodHandle. That way stack
|
||||
// walkers and compiler heuristics can recognize them.
|
||||
_target_klass = SystemDictionary::MethodHandle_klass();
|
||||
}
|
||||
|
||||
// instanceKlass* ik = instanceKlass::cast(klass);
|
||||
// tty->print_cr("MethodHandleCompiler::make_invoke: %s %s.%s%s", Bytecodes::name(op), ik->external_name(), name->as_C_string(), signature->as_C_string());
|
||||
|
||||
// Inline the method.
|
||||
InvocationCounter* ic = m->invocation_counter();
|
||||
ic->set_carry_flag();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue