8246546: Simplify SystemDictionary::is_shared_class_visible

Reviewed-by: minqi, ccheung
This commit is contained in:
Ioi Lam 2020-06-23 21:23:00 -07:00
parent e178f0467b
commit 27fc8b6787
8 changed files with 127 additions and 186 deletions

View file

@ -29,6 +29,7 @@
#include "classfile/javaClasses.inline.hpp"
#include "classfile/moduleEntry.hpp"
#include "logging/log.hpp"
#include "memory/filemap.hpp"
#include "memory/resourceArea.hpp"
#include "memory/universe.hpp"
#include "oops/oopHandle.inline.hpp"
@ -55,6 +56,9 @@ void ModuleEntry::set_location(Symbol* location) {
if (location != NULL) {
location->increment_refcount();
CDS_ONLY(if (UseSharedSpaces) {
_shared_path_index = FileMapInfo::get_module_shared_path_index(location);
});
}
}