mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8246546: Simplify SystemDictionary::is_shared_class_visible
Reviewed-by: minqi, ccheung
This commit is contained in:
parent
e178f0467b
commit
27fc8b6787
8 changed files with 127 additions and 186 deletions
|
@ -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);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue