-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8365526: Crash with null Symbol passed to SystemDictionary::resolve_or_null #28438
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1870,7 +1870,10 @@ void SystemDictionary::add_nest_host_error(const constantPoolHandle& pool, | |
| // only reach here under the same error condition, so we can ignore the potential race with setting | ||
| // the message. If we see it is already set then we can ignore it. | ||
| entry->set_nest_host_error(message); | ||
| } else { | ||
| } else if (entry == nullptr) { | ||
| // Only add a new resolution error if one hasn't been found for this constant pool index. In this case, | ||
| // resolution succeeded but there's an error in this nest host. | ||
| assert(pool->resolved_klass_at(which) != nullptr, "klass is should be resolved if there is no entry"); | ||
| ResolutionErrorTable::add_entry(pool, which, message); | ||
|
||
| } | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Existing -- shouldn't we free the old
entry->_nest_host_error?Also, there's a related memory leak here: