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:
Harold Seigel 2020-01-16 13:48:23 +00:00
parent e2240b714e
commit 7fc58a1020
36 changed files with 122 additions and 121 deletions

View file

@ -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) {