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:
Coleen Phillimore 2019-05-14 11:29:18 -04:00
parent 23278fea38
commit 204059634d
67 changed files with 269 additions and 318 deletions

View file

@ -336,7 +336,7 @@ bool SignatureStream::is_array() const {
return _type == T_ARRAY;
}
Symbol* SignatureStream::as_symbol(TRAPS) {
Symbol* SignatureStream::as_symbol() {
// Create a symbol from for string _begin _end
int begin = _begin;
int end = _end;
@ -368,7 +368,7 @@ Symbol* SignatureStream::as_symbol(TRAPS) {
// Save names for cleaning up reference count at the end of
// SignatureStream scope.
name = SymbolTable::new_symbol(symbol_chars, len, CHECK_NULL);
name = SymbolTable::new_symbol(symbol_chars, len);
if (!name->is_permanent()) {
if (_names == NULL) {
_names = new GrowableArray<Symbol*>(10);
@ -380,9 +380,9 @@ Symbol* SignatureStream::as_symbol(TRAPS) {
}
Klass* SignatureStream::as_klass(Handle class_loader, Handle protection_domain,
FailureMode failure_mode, TRAPS) {
FailureMode failure_mode, TRAPS) {
if (!is_object()) return NULL;
Symbol* name = as_symbol(CHECK_NULL);
Symbol* name = as_symbol();
if (failure_mode == ReturnNull) {
return SystemDictionary::resolve_or_null(name, class_loader, protection_domain, THREAD);
} else {