mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8223657: Remove unused THREAD argument from SymbolTable functions
Also made lookup and lookup_only functions private to SymbolTable. External callers use new_symbol or probe. Reviewed-by: dholmes, gziemski
This commit is contained in:
parent
23278fea38
commit
204059634d
67 changed files with 269 additions and 318 deletions
|
@ -108,8 +108,7 @@ void ClassLoaderData::initialize_name(Handle class_loader) {
|
|||
const char* cl_instance_name = java_lang_String::as_utf8_string(cl_name);
|
||||
|
||||
if (cl_instance_name != NULL && cl_instance_name[0] != '\0') {
|
||||
// Can't throw InternalError and SymbolTable doesn't throw OOM anymore.
|
||||
_name = SymbolTable::new_symbol(cl_instance_name, CATCH);
|
||||
_name = SymbolTable::new_symbol(cl_instance_name);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -125,8 +124,7 @@ void ClassLoaderData::initialize_name(Handle class_loader) {
|
|||
(cl_name_and_id == NULL) ? _class_loader_klass->external_name() :
|
||||
java_lang_String::as_utf8_string(cl_name_and_id);
|
||||
assert(cl_instance_name_and_id != NULL && cl_instance_name_and_id[0] != '\0', "class loader has no name and id");
|
||||
// Can't throw InternalError and SymbolTable doesn't throw OOM anymore.
|
||||
_name_and_id = SymbolTable::new_symbol(cl_instance_name_and_id, CATCH);
|
||||
_name_and_id = SymbolTable::new_symbol(cl_instance_name_and_id);
|
||||
}
|
||||
|
||||
ClassLoaderData::ClassLoaderData(Handle h_class_loader, bool is_unsafe_anonymous) :
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue