8292218: Convert PackageEntryTable to ResourceHashtable

Reviewed-by: lfoltan, iklam, dholmes
This commit is contained in:
Coleen Phillimore 2022-08-12 12:37:27 +00:00
parent 871b7dab14
commit 9f8cc42135
8 changed files with 168 additions and 230 deletions

View file

@ -214,8 +214,8 @@ static void define_javabase_module(Handle module_handle, jstring version, jstrin
// loop through and add any new packages for java.base
for (int x = 0; x < pkg_list->length(); x++) {
// Some of java.base's packages were added early in bootstrapping, ignore duplicates.
package_table->locked_create_entry_if_not_exist(pkg_list->at(x),
ModuleEntryTable::javabase_moduleEntry());
package_table->locked_create_entry_if_absent(pkg_list->at(x),
ModuleEntryTable::javabase_moduleEntry());
assert(package_table->locked_lookup_only(pkg_list->at(x)) != NULL,
"Unable to create a " JAVA_BASE_NAME " package entry");
// Unable to have a GrowableArray of TempNewSymbol. Must decrement the refcount of