--- old/src/share/vm/classfile/moduleEntry.cpp 2017-07-21 13:42:46.221315032 -0400 +++ new/src/share/vm/classfile/moduleEntry.cpp 2017-07-21 13:42:45.988558011 -0400 @@ -339,12 +339,7 @@ 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); + ModuleEntry* entry = (ModuleEntry*)Hashtable::allocate_new_entry(hash, name); // Initialize fields specific to a ModuleEntry entry->init();