src/hotspot/share/oops/oopsHierarchy.hpp
changeset 49592 77fb0be7d19f
parent 49057 045b2de329b9
child 52070 e4d72440d60e
equal deleted inserted replaced
49591:272dff61a2de 49592:77fb0be7d19f
   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;