--- a/src/hotspot/share/memory/metaspaceShared.hpp Mon Oct 29 08:34:33 2018 -0700
+++ b/src/hotspot/share/memory/metaspaceShared.hpp Thu Oct 25 11:23:43 2018 -0700
@@ -125,7 +125,7 @@
static bool is_in_shared_metaspace(const void* p) {
// If no shared metaspace regions are mapped, MetaspceObj::_shared_metaspace_{base,top} will
// both be NULL and all values of p will be rejected quickly.
- return (p < MetaspaceObj::_shared_metaspace_top && p >= MetaspaceObj::_shared_metaspace_base);
+ return (p < MetaspaceObj::shared_metaspace_top() && p >= MetaspaceObj::shared_metaspace_base());
}
// Return true if given address is in the shared region corresponding to the idx