mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8332735: [JVMCI] Add extra JVMCI events for exception translation
Reviewed-by: never
This commit is contained in:
parent
1ea76d338b
commit
612ae9289a
1 changed files with 2 additions and 0 deletions
|
@ -514,6 +514,7 @@ class HotSpotToSharedLibraryExceptionTranslation : public ExceptionTranslation {
|
|||
}
|
||||
|
||||
void decode(JavaThread* THREAD, DecodeFormat format, jlong buffer) {
|
||||
JVMCI_event_1("decoding exception from JVM heap (format: %d, buffer[%d]) ", format, buffer == 0L ? -1 : *((u4*) buffer));
|
||||
JNIAccessMark jni(_to_env, THREAD);
|
||||
jni()->CallStaticVoidMethod(JNIJVMCI::VMSupport::clazz(),
|
||||
JNIJVMCI::VMSupport::decodeAndThrowThrowable_method(),
|
||||
|
@ -545,6 +546,7 @@ class SharedLibraryToHotSpotExceptionTranslation : public ExceptionTranslation {
|
|||
}
|
||||
|
||||
void decode(JavaThread* THREAD, DecodeFormat format, jlong buffer) {
|
||||
JVMCI_event_1("decoding exception to JVM heap (format: %d, buffer[%d]) ", format, buffer == 0L ? -1 : *((u4*) buffer));
|
||||
Klass* vmSupport = SystemDictionary::resolve_or_fail(vmSymbols::jdk_internal_vm_VMSupport(), true, CHECK);
|
||||
JavaCallArguments jargs;
|
||||
jargs.push_int(format);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue