mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 14:24:46 +02:00
7055355: JSR 292: crash while throwing WrongMethodTypeException
Reviewed-by: jrose, twisti, bdelsart
This commit is contained in:
parent
ca8939dd80
commit
5d2e4e676b
18 changed files with 77 additions and 135 deletions
|
@ -763,6 +763,13 @@ JRT_ENTRY(void, SharedRuntime::throw_StackOverflowError(JavaThread* thread))
|
|||
throw_and_post_jvmti_exception(thread, exception);
|
||||
JRT_END
|
||||
|
||||
JRT_ENTRY(void, SharedRuntime::throw_WrongMethodTypeException(JavaThread* thread, oopDesc* required, oopDesc* actual))
|
||||
assert(thread == JavaThread::current() && required->is_oop() && actual->is_oop(), "bad args");
|
||||
ResourceMark rm;
|
||||
char* message = SharedRuntime::generate_wrong_method_type_message(thread, required, actual);
|
||||
throw_and_post_jvmti_exception(thread, vmSymbols::java_lang_invoke_WrongMethodTypeException(), message);
|
||||
JRT_END
|
||||
|
||||
address SharedRuntime::continuation_for_implicit_exception(JavaThread* thread,
|
||||
address pc,
|
||||
SharedRuntime::ImplicitExceptionKind exception_kind)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue