mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
7018355: JSR 292: VM crash in DefNewGeneration::copy_to_survivor_space
Reviewed-by: kvn, jrose
This commit is contained in:
parent
8753dded1c
commit
0b2d972fd3
6 changed files with 121 additions and 132 deletions
|
@ -1721,14 +1721,14 @@ char* SharedRuntime::generate_wrong_method_type_message(JavaThread* thread,
|
|||
targetArity = ArgumentCount(target->signature()).size();
|
||||
}
|
||||
}
|
||||
klassOop kignore; int dmf_flags = 0;
|
||||
methodOop actual_method = MethodHandles::decode_method(actual, kignore, dmf_flags);
|
||||
KlassHandle kignore; int dmf_flags = 0;
|
||||
methodHandle actual_method = MethodHandles::decode_method(actual, kignore, dmf_flags);
|
||||
if ((dmf_flags & ~(MethodHandles::_dmf_has_receiver |
|
||||
MethodHandles::_dmf_does_dispatch |
|
||||
MethodHandles::_dmf_from_interface)) != 0)
|
||||
actual_method = NULL; // MH does extra binds, drops, etc.
|
||||
actual_method = methodHandle(); // MH does extra binds, drops, etc.
|
||||
bool has_receiver = ((dmf_flags & MethodHandles::_dmf_has_receiver) != 0);
|
||||
if (actual_method != NULL) {
|
||||
if (actual_method.not_null()) {
|
||||
mhName = actual_method->signature()->as_C_string();
|
||||
mhArity = ArgumentCount(actual_method->signature()).size();
|
||||
if (!actual_method->is_static()) mhArity += 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue