mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8178107: Compiler crashes with "assert(get_instanceKlass()->is_loaded()) failed: must be at least loaded"
Add missing '!' operator to weed out unloaded classes Reviewed-by: coleenp, dcubed
This commit is contained in:
parent
5a4e278add
commit
3f65f7fe6d
1 changed files with 1 additions and 1 deletions
|
@ -315,7 +315,7 @@ InstanceKlass* LoaderConstraintTable::find_constrained_klass(Symbol* name,
|
|||
LoaderConstraintEntry *p = *(find_loader_constraint(name, loader));
|
||||
if (p != NULL && p->klass() != NULL) {
|
||||
assert(p->klass()->is_instance_klass(), "sanity");
|
||||
if (p->klass()->is_loaded()) {
|
||||
if (!p->klass()->is_loaded()) {
|
||||
// Only return fully loaded classes. Classes found through the
|
||||
// constraints might still be in the process of loading.
|
||||
return NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue