mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8249837: Avoid direct or implicit Thread::current() calls when we already have a current thread variable
Add current thread OR remove unneeded HandleMark Reviewed-by: kvn, dholmes
This commit is contained in:
parent
79f02a67ce
commit
9798a0846b
50 changed files with 108 additions and 143 deletions
|
@ -1773,7 +1773,7 @@ bool SystemDictionaryShared::check_linking_constraints(InstanceKlass* klass, TRA
|
|||
RunTimeSharedClassInfo* info = RunTimeSharedClassInfo::get_for(klass);
|
||||
assert(info != NULL, "Sanity");
|
||||
if (info->_num_loader_constraints > 0) {
|
||||
HandleMark hm;
|
||||
HandleMark hm(THREAD);
|
||||
for (int i = 0; i < info->_num_loader_constraints; i++) {
|
||||
RunTimeSharedClassInfo::RTLoaderConstraint* lc = info->loader_constraint_at(i);
|
||||
Symbol* name = lc->constraint_name();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue