src/hotspot/share/classfile/javaClasses.inline.hpp
changeset 53380 c8208421a860
parent 53244 9807daeb47c4
child 53418 bc2bb4eee477
equal deleted inserted replaced
53379:e47074d2d8cc 53380:c8208421a860
   186         "Should be either the T_VOID primitive or a java primitive");
   186         "Should be either the T_VOID primitive or a java primitive");
   187   }
   187   }
   188 #endif
   188 #endif
   189 
   189 
   190   return is_primitive;
   190   return is_primitive;
       
   191 }
       
   192 
       
   193 inline int java_lang_Class::oop_size_raw(oop java_class) {
       
   194   assert(_oop_size_offset != 0, "must be set");
       
   195   int size = java_class->int_field_raw(_oop_size_offset);
       
   196   assert(size > 0, "Oop size must be greater than zero, not %d", size);
       
   197   return size;
   191 }
   198 }
   192 
   199 
   193 inline bool java_lang_invoke_DirectMethodHandle::is_instance(oop obj) {
   200 inline bool java_lang_invoke_DirectMethodHandle::is_instance(oop obj) {
   194   return obj != NULL && is_subclass(obj->klass());
   201   return obj != NULL && is_subclass(obj->klass());
   195 }
   202 }