8208172: SIGSEGV when owner of invokedynamic bootstrap method throws an exception - Symbol::increment_refcount()+0x0

Table for resolution errors always expect non-null message string.

Reviewed-by: dholmes, iklam
This commit is contained in:
Coleen Phillimore 2018-08-22 07:51:07 -04:00
parent ce61e39060
commit b1ce2c0fe8
6 changed files with 180 additions and 7 deletions

View file

@ -477,7 +477,6 @@ bool ConstantPoolCacheEntry::save_and_throw_indy_exc(
Symbol* error = PENDING_EXCEPTION->klass()->name();
Symbol* message = java_lang_Throwable::detail_message(PENDING_EXCEPTION);
assert(message != NULL, "Missing detail message");
SystemDictionary::add_resolution_error(cpool, index, error, message);
set_indy_resolution_failed();