mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 10:34:38 +02:00
8235678: Remove unnecessary calls to Thread::current() in MutexLocker calls
Add THREAD argument when available and make Thread* the first argument to relevant MutexLocker and MonitorLocker constructors Reviewed-by: lfoltan, coleenp, dholmes
This commit is contained in:
parent
e2240b714e
commit
7fc58a1020
36 changed files with 122 additions and 121 deletions
|
@ -2107,7 +2107,7 @@ ClassPathEntry* FileMapInfo::get_classpath_entry_for_jvmti(int i, TRAPS) {
|
|||
}
|
||||
}
|
||||
|
||||
MutexLocker mu(CDSClassFileStream_lock, THREAD);
|
||||
MutexLocker mu(THREAD, CDSClassFileStream_lock);
|
||||
if (_classpath_entries_for_jvmti[i] == NULL) {
|
||||
_classpath_entries_for_jvmti[i] = ent;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue