mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-16 09:04:41 +02:00
8235629: Remove unnecessary calls to Thread::current
Reviewed-by: coleenp, ccheung, hseigel
This commit is contained in:
parent
dca6e34397
commit
cb75b6ee22
9 changed files with 30 additions and 26 deletions
|
@ -1042,7 +1042,7 @@ bool ClassLoader::add_package(const char *fullq_class_name, s2 classpath_index,
|
|||
assert(fullq_class_name != NULL, "just checking");
|
||||
|
||||
// Get package name from fully qualified class name.
|
||||
ResourceMark rm;
|
||||
ResourceMark rm(THREAD);
|
||||
const char *cp = package_from_name(fullq_class_name);
|
||||
if (cp != NULL) {
|
||||
PackageEntryTable* pkg_entry_tbl = ClassLoaderData::the_null_class_loader_data()->packages();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue