aboutsummaryrefslogtreecommitdiff
path: root/src/hotspot/share/oops/cpCache.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/hotspot/share/oops/cpCache.cpp')
-rw-r--r--src/hotspot/share/oops/cpCache.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hotspot/share/oops/cpCache.cpp b/src/hotspot/share/oops/cpCache.cpp
index 23b3ee0d49c..2d3285bb982 100644
--- a/src/hotspot/share/oops/cpCache.cpp
+++ b/src/hotspot/share/oops/cpCache.cpp
@@ -849,9 +849,9 @@ bool ConstantPoolCache::save_and_throw_indy_exc(
CLEAR_PENDING_EXCEPTION;
return false;
}
-
+ ResourceMark rm(THREAD);
Symbol* error = PENDING_EXCEPTION->klass()->name();
- Symbol* message = java_lang_Throwable::detail_message(PENDING_EXCEPTION);
+ const char* message = java_lang_Throwable::message_as_utf8(PENDING_EXCEPTION);
int encoded_index = ResolutionErrorTable::encode_cpcache_index(
ConstantPool::encode_invokedynamic_index(index));