mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8252406: Introduce Thread::as_Java_thread() convenience function
Reviewed-by: shade, coleenp, kbarrett, dcubed
This commit is contained in:
parent
488022689f
commit
976acddeb5
110 changed files with 360 additions and 456 deletions
|
@ -1033,7 +1033,7 @@ static oop invoke(InstanceKlass* klass,
|
|||
// JVMTI has already reported the pending exception
|
||||
// JVMTI internal flag reset is needed in order to report InvocationTargetException
|
||||
if (THREAD->is_Java_thread()) {
|
||||
JvmtiExport::clear_detected_exception((JavaThread*)THREAD);
|
||||
JvmtiExport::clear_detected_exception(THREAD->as_Java_thread());
|
||||
}
|
||||
JavaCallArguments args(Handle(THREAD, resolution_exception));
|
||||
THROW_ARG_0(vmSymbols::java_lang_reflect_InvocationTargetException(),
|
||||
|
@ -1147,7 +1147,7 @@ static oop invoke(InstanceKlass* klass,
|
|||
// JVMTI has already reported the pending exception
|
||||
// JVMTI internal flag reset is needed in order to report InvocationTargetException
|
||||
if (THREAD->is_Java_thread()) {
|
||||
JvmtiExport::clear_detected_exception((JavaThread*)THREAD);
|
||||
JvmtiExport::clear_detected_exception(THREAD->as_Java_thread());
|
||||
}
|
||||
|
||||
JavaCallArguments args(Handle(THREAD, target_exception));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue