mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +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
|
@ -1322,7 +1322,7 @@ Klass* InstanceKlass::array_klass_impl(bool or_null, int n, TRAPS) {
|
|||
JavaThread *jt = (JavaThread *)THREAD;
|
||||
{
|
||||
// Atomic creation of array_klasses
|
||||
MutexLocker ma(MultiArray_lock, THREAD);
|
||||
MutexLocker ma(THREAD, MultiArray_lock);
|
||||
|
||||
// Check if update has already taken place
|
||||
if (array_klasses() == NULL) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue