OpenJDK / jdk / hs
changeset 46716:53915543333d
8178107: Compiler crashes with "assert(get_instanceKlass()->is_loaded()) failed: must be at least loaded"
Summary: Add missing '!' operator to weed out unloaded classes
Reviewed-by: coleenp, dcubed
author | hseigel |
---|---|
date | Tue, 25 Jul 2017 13:33:28 -0400 |
parents | 97900a4c5ff4 |
children | 16ad138ebfb4 |
files | hotspot/src/share/vm/classfile/loaderConstraints.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hotspot/src/share/vm/classfile/loaderConstraints.cpp Tue Jul 25 11:58:29 2017 +0200 +++ b/hotspot/src/share/vm/classfile/loaderConstraints.cpp Tue Jul 25 13:33:28 2017 -0400 @@ -315,7 +315,7 @@ 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;