< prev index next >

src/hotspot/share/classfile/systemDictionaryShared.cpp

Print this page
@@ -56,10 +56,11 @@
  #include "memory/metadataFactory.hpp"
  #include "memory/metaspaceClosure.hpp"
  #include "memory/oopFactory.hpp"
  #include "memory/resourceArea.hpp"
  #include "memory/universe.hpp"
+ #include "oops/compressedKlass.hpp"
  #include "oops/instanceKlass.hpp"
  #include "oops/klass.inline.hpp"
  #include "oops/objArrayOop.inline.hpp"
  #include "oops/oop.inline.hpp"
  #include "oops/oopHandle.inline.hpp"

@@ -1406,12 +1407,16 @@
  }
  
  InstanceKlass* SystemDictionaryShared::find_builtin_class(Symbol* name) {
    const RunTimeClassInfo* record = find_record(&_builtin_dictionary, &_dynamic_builtin_dictionary, name);
    if (record != NULL) {
+ #ifdef ASSERT
+     if (UseCompressedClassPointers) {
+       CompressedKlassPointers::verify_klass_pointer(record->_klass);
+     }
+ #endif
      assert(!record->_klass->is_hidden(), "hidden class cannot be looked up by name");
-     assert(check_alignment(record->_klass), "Address not aligned");
      return record->_klass;
    } else {
      return NULL;
    }
  }
< prev index next >