< prev index next >

src/hotspot/share/oops/klass.inline.hpp

Print this page
rev 48545 : Value-based classes (vbc) / Oop value test via metadata ptr

*** 69,78 **** --- 69,88 ---- inline Klass* Klass::decode_klass(narrowKlass v) { return is_null(v) ? (Klass*)NULL : decode_klass_not_null(v); } + #if INCLUDE_VBC + inline bool Klass::decode_ptr_is_value_based(narrowKlass v) { + return (v & Universe::oop_metadata_odd_mask()); + } + inline bool Klass::ptr_is_value_based(Klass* v) { + return ((uintptr_t)v & Universe::oop_metadata_odd_mask()); + } + #endif + + template <typename T> bool Klass::is_instanceof_or_null(T element) { if (oopDesc::is_null(element)) { return true; }
< prev index next >