diff a/src/hotspot/share/classfile/moduleEntry.cpp b/src/hotspot/share/classfile/moduleEntry.cpp --- a/src/hotspot/share/classfile/moduleEntry.cpp +++ b/src/hotspot/share/classfile/moduleEntry.cpp @@ -309,11 +309,11 @@ return entry; } void ModuleEntry::delete_unnamed_module() { // Do not need unlink_entry() since the unnamed module is not in the hashtable - FREE_C_HEAP_ARRAY(char, this); + FREE_C_HEAP_OBJ(this); } ModuleEntryTable::ModuleEntryTable(int table_size) : Hashtable(table_size, sizeof(ModuleEntry)) {