In java_lang_Class::create_mirror, restructure the check for adding a class to the fixup_module_list, guarded by Module_lock.
Reviewed-by: acorn, coleenp, dholmes, zgu
Fixed an issue in class unloading to delay walk until class loader's aliveness is determined of modularity lists to remove dead modules
Reviewed-by: coleenp, dholmes, sspitsyn, zgu
During start up anonymous classes must be kept alive until after their mirror's module field is patched with java.base
Co-authored-by: Stefan Karlsson <stefan.karlsson@oracle.com>
Reviewed-by: coleenp, hseigel