8231610: Relocate the CDS archive if it cannot be mapped to the requested address

Reviewed-by: jiangli, coleenp, ccheung
This commit is contained in:
Ioi Lam 2019-11-13 16:36:54 -08:00
parent cdba535853
commit 5678f98a9e
36 changed files with 1880 additions and 717 deletions

View file

@ -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