mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +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
|
@ -552,7 +552,7 @@ void Klass::restore_unshareable_info(ClassLoaderData* loader_data, Handle protec
|
|||
assert(is_shared(), "must be set");
|
||||
JFR_ONLY(RESTORE_ID(this);)
|
||||
if (log_is_enabled(Trace, cds, unshareable)) {
|
||||
ResourceMark rm;
|
||||
ResourceMark rm(THREAD);
|
||||
log_trace(cds, unshareable)("restore: %s", external_name());
|
||||
}
|
||||
|
||||
|
@ -585,7 +585,7 @@ void Klass::restore_unshareable_info(ClassLoaderData* loader_data, Handle protec
|
|||
Handle module_handle(THREAD, ((module_entry != NULL) ? module_entry->module() : (oop)NULL));
|
||||
|
||||
if (this->has_raw_archived_mirror()) {
|
||||
ResourceMark rm;
|
||||
ResourceMark rm(THREAD);
|
||||
log_debug(cds, mirror)("%s has raw archived mirror", external_name());
|
||||
if (HeapShared::open_archive_heap_region_mapped()) {
|
||||
bool present = java_lang_Class::restore_archived_mirror(this, loader, module_handle,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue