< prev index next >

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

Print this page

        

*** 94,103 **** --- 94,113 ---- narrowKlass* oopDesc::compressed_klass_addr() { assert(UseCompressedClassPointers, "only called by compressed klass pointers"); return &_metadata._compressed_klass; } + // oop only test (does not load klass) + bool oopDesc::klass_is_value_type() { + if (UseCompressedClassPointers) { + return Klass::decode_ptr_is_value_type(_metadata._compressed_klass); + } else { + return Klass::ptr_is_value_type(_metadata._klass); + } + } + + #define CHECK_SET_KLASS(k) \ do { \ assert(Universe::is_bootstrapping() || k != NULL, "NULL Klass"); \ assert(Universe::is_bootstrapping() || k->is_klass(), "not a Klass"); \ } while (0)
< prev index next >