Skip to content

Commit 612ae92

Browse files
author
Doug Simon
committed
8332735: [JVMCI] Add extra JVMCI events for exception translation
Reviewed-by: never
1 parent 1ea76d3 commit 612ae92

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/hotspot/share/jvmci/jvmciEnv.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,7 @@ class HotSpotToSharedLibraryExceptionTranslation : public ExceptionTranslation {
514514
}
515515

516516
void decode(JavaThread* THREAD, DecodeFormat format, jlong buffer) {
517+
JVMCI_event_1("decoding exception from JVM heap (format: %d, buffer[%d]) ", format, buffer == 0L ? -1 : *((u4*) buffer));
517518
JNIAccessMark jni(_to_env, THREAD);
518519
jni()->CallStaticVoidMethod(JNIJVMCI::VMSupport::clazz(),
519520
JNIJVMCI::VMSupport::decodeAndThrowThrowable_method(),
@@ -545,6 +546,7 @@ class SharedLibraryToHotSpotExceptionTranslation : public ExceptionTranslation {
545546
}
546547

547548
void decode(JavaThread* THREAD, DecodeFormat format, jlong buffer) {
549+
JVMCI_event_1("decoding exception to JVM heap (format: %d, buffer[%d]) ", format, buffer == 0L ? -1 : *((u4*) buffer));
548550
Klass* vmSupport = SystemDictionary::resolve_or_fail(vmSymbols::jdk_internal_vm_VMSupport(), true, CHECK);
549551
JavaCallArguments jargs;
550552
jargs.push_int(format);

0 commit comments

Comments
 (0)