src/share/vm/classfile/dictionary.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File
*** old/src/share/vm/classfile/dictionary.cpp	Wed Apr 15 12:03:04 2015
--- new/src/share/vm/classfile/dictionary.cpp	Wed Apr 15 12:03:04 2015

*** 359,369 **** --- 359,369 ---- void Dictionary::add_klass(Symbol* class_name, ClassLoaderData* loader_data, KlassHandle obj) { assert_locked_or_safepoint(SystemDictionary_lock); assert(obj() != NULL, "adding NULL obj"); ! assert(obj()->name() == class_name, "sanity check on name"); ! assert(obj()->name()->equals(class_name), "sanity check on name"); assert(loader_data != NULL, "Must be non-NULL"); unsigned int hash = compute_hash(class_name, loader_data); int index = hash_to_index(hash); DictionaryEntry* entry = new_entry(hash, obj(), loader_data);
*** 661,671 **** --- 661,671 ---- SymbolPropertyEntry* SymbolPropertyTable::find_entry(int index, unsigned int hash, Symbol* sym, intptr_t sym_mode) { assert(index == index_for(sym, sym_mode), "incorrect index?"); for (SymbolPropertyEntry* p = bucket(index); p != NULL; p = p->next()) { ! if (p->hash() == hash && p->symbol() == sym && p->symbol_mode() == sym_mode) { ! if (p->hash() == hash && p->symbol()->equals(sym) && p->symbol_mode() == sym_mode) { return p; } } return NULL; }

src/share/vm/classfile/dictionary.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File