--- a/src/hotspot/share/classfile/packageEntry.hpp Thu Jan 24 09:25:06 2019 -0500
+++ b/src/hotspot/share/classfile/packageEntry.hpp Thu Jan 24 09:38:50 2019 -0500
@@ -246,9 +246,13 @@
return (PackageEntry*)Hashtable<Symbol*, mtModule>::bucket(i);
}
- // Create package in loader's package entry table and return the entry.
- // If entry already exists, return null. Assume Module lock was taken by caller.
- PackageEntry* locked_create_entry_or_null(Symbol* name, ModuleEntry* module);
+ // Create package entry in loader's package entry table. Assume Module
+ // lock was taken by caller.
+ void locked_create_entry(Symbol* name, ModuleEntry* module);
+
+ // Create package entry in loader's package entry table if it does not
+ // already exist. Assume Module lock was taken by caller.
+ void locked_create_entry_if_not_exist(Symbol* name, ModuleEntry* module);
// Lookup Package with loader's package entry table, add it if not found.
// This will acquire the Module lock.