< prev index next >

src/share/vm/classfile/moduleEntry.cpp

Print this page

        

*** 337,352 **** ModuleEntry* ModuleEntryTable::new_entry(unsigned int hash, Handle module_handle, bool is_open, Symbol* name, Symbol* version, Symbol* location, ClassLoaderData* loader_data) { assert(Module_lock->owned_by_self(), "should have the Module_lock"); ! ModuleEntry* entry = (ModuleEntry*) NEW_C_HEAP_ARRAY(char, entry_size(), mtModule); ! ! // Initialize everything BasicHashtable would ! entry->set_next(NULL); ! entry->set_hash(hash); ! entry->set_literal(name); // Initialize fields specific to a ModuleEntry entry->init(); if (name != NULL) { name->increment_refcount(); --- 337,347 ---- ModuleEntry* ModuleEntryTable::new_entry(unsigned int hash, Handle module_handle, bool is_open, Symbol* name, Symbol* version, Symbol* location, ClassLoaderData* loader_data) { assert(Module_lock->owned_by_self(), "should have the Module_lock"); ! ModuleEntry* entry = (ModuleEntry*)Hashtable<Symbol*, mtModule>::allocate_new_entry(hash, name); // Initialize fields specific to a ModuleEntry entry->init(); if (name != NULL) { name->increment_refcount();
< prev index next >