equal
deleted
inserted
replaced
190 } |
190 } |
191 template <class T> inline T cast_from_oop(oop o) { |
191 template <class T> inline T cast_from_oop(oop o) { |
192 return (T)(CHECK_UNHANDLED_OOPS_ONLY((void*))o); |
192 return (T)(CHECK_UNHANDLED_OOPS_ONLY((void*))o); |
193 } |
193 } |
194 |
194 |
|
195 inline bool check_obj_alignment(oop obj) { |
|
196 return (cast_from_oop<intptr_t>(obj) & MinObjAlignmentInBytesMask) == 0; |
|
197 } |
|
198 |
195 // The metadata hierarchy is separate from the oop hierarchy |
199 // The metadata hierarchy is separate from the oop hierarchy |
196 |
200 |
197 // class MetaspaceObj |
201 // class MetaspaceObj |
198 class ConstMethod; |
202 class ConstMethod; |
199 class ConstantPoolCache; |
203 class ConstantPoolCache; |