mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8231610: Relocate the CDS archive if it cannot be mapped to the requested address
Reviewed-by: jiangli, coleenp, ccheung
This commit is contained in:
parent
cdba535853
commit
5678f98a9e
36 changed files with 1880 additions and 717 deletions
|
@ -323,6 +323,12 @@ public:
|
|||
};
|
||||
#endif
|
||||
|
||||
template <typename T>
|
||||
static unsigned int hash_for_shared_dictionary(T* ptr) {
|
||||
assert(ptr > (T*)SharedBaseAddress, "must be");
|
||||
address p = address(ptr) - SharedBaseAddress;
|
||||
return primitive_hash<address>(p);
|
||||
}
|
||||
};
|
||||
|
||||
#endif // SHARE_CLASSFILE_SYSTEMDICTIONARYSHARED_HPP
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue