--- old/src/hotspot/share/classfile/moduleEntry.cpp 2020-03-26 15:57:51.000000000 -0700 +++ new/src/hotspot/share/classfile/moduleEntry.cpp 2020-03-26 15:57:50.000000000 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -75,6 +75,7 @@ const char* loc = location()->as_C_string(); ClassLoaderData* cld = loader_data(); + assert(!cld->has_class_mirror_holder(), "module's cld should have a ClassLoader holder not a Class holder"); if ((cld->is_the_null_class_loader_data() || cld->is_platform_class_loader_data()) && (strncmp(loc, "jrt:/java.", 10) == 0)) { return false; @@ -135,6 +136,7 @@ // injecting dependencies that require the default read edges for resolution. if (this->has_default_read_edges() && !m->is_named()) { ClassLoaderData* cld = m->loader_data(); + assert(!cld->has_class_mirror_holder(), "module's cld should have a ClassLoader holder not a Class holder"); if (cld->is_the_null_class_loader_data() || cld->is_system_class_loader_data()) { return true; // default read edge }