8258408: SystemDictionary passes TRAPS to functions that don't throw exceptions

Reviewed-by: dholmes, lfoltan
This commit is contained in:
Coleen Phillimore 2020-12-17 18:49:42 +00:00
parent 9ed0b76403
commit 6e824b3f51
8 changed files with 137 additions and 170 deletions

View file

@ -139,7 +139,7 @@ void LambdaFormInvokers::reload_class(char* name, ClassFileStream& st, TRAPS) {
{
MutexLocker mu_r(THREAD, Compile_lock); // add_to_hierarchy asserts this.
SystemDictionary::add_to_hierarchy(result, THREAD);
SystemDictionary::add_to_hierarchy(result);
}
// new class not linked yet.
MetaspaceShared::try_link_class(result, THREAD);