mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-23 04:24:49 +02:00
8046542: [I.finalize() calls from methods compiled by C1 do not cause IllegalAccessError on Sparc
Call to Object.finalize() sometimes allowed by compilers on array type Reviewed-by: iveresov, vlivanov
This commit is contained in:
parent
0231fb818f
commit
b5e96ad985
4 changed files with 28 additions and 11 deletions
|
@ -871,8 +871,11 @@ CallGenerator* CallGenerator::for_method_handle_inline(JVMState* jvms, ciMethod*
|
|||
Node* receiver_node = kit.argument(0);
|
||||
const TypeOopPtr* receiver_type = gvn.type(receiver_node)->isa_oopptr();
|
||||
// call_does_dispatch and vtable_index are out-parameters. They might be changed.
|
||||
target = C->optimize_virtual_call(caller, jvms->bci(), klass, target, receiver_type,
|
||||
is_virtual,
|
||||
// optimize_virtual_call() takes 2 different holder
|
||||
// arguments for a corner case that doesn't apply here (see
|
||||
// Parse::do_call())
|
||||
target = C->optimize_virtual_call(caller, jvms->bci(), klass, klass,
|
||||
target, receiver_type, is_virtual,
|
||||
call_does_dispatch, vtable_index); // out-parameters
|
||||
// We lack profiling at this call but type speculation may
|
||||
// provide us with a type
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue