equal
deleted
inserted
replaced
123 // Return true if given address is in the shared metaspace regions (i.e., excluding any |
123 // Return true if given address is in the shared metaspace regions (i.e., excluding any |
124 // mapped shared heap regions.) |
124 // mapped shared heap regions.) |
125 static bool is_in_shared_metaspace(const void* p) { |
125 static bool is_in_shared_metaspace(const void* p) { |
126 // If no shared metaspace regions are mapped, MetaspceObj::_shared_metaspace_{base,top} will |
126 // If no shared metaspace regions are mapped, MetaspceObj::_shared_metaspace_{base,top} will |
127 // both be NULL and all values of p will be rejected quickly. |
127 // both be NULL and all values of p will be rejected quickly. |
128 return (p < MetaspaceObj::_shared_metaspace_top && p >= MetaspaceObj::_shared_metaspace_base); |
128 return (p < MetaspaceObj::shared_metaspace_top() && p >= MetaspaceObj::shared_metaspace_base()); |
129 } |
129 } |
130 |
130 |
131 // Return true if given address is in the shared region corresponding to the idx |
131 // Return true if given address is in the shared region corresponding to the idx |
132 static bool is_in_shared_region(const void* p, int idx) NOT_CDS_RETURN_(false); |
132 static bool is_in_shared_region(const void* p, int idx) NOT_CDS_RETURN_(false); |
133 |
133 |