--- old/src/share/vm/oops/instanceKlass.cpp 2017-06-22 14:15:59.940511317 -0400 +++ new/src/share/vm/oops/instanceKlass.cpp 2017-06-22 14:15:59.824207279 -0400 @@ -435,7 +435,7 @@ EXCEPTION_MARK; HandleMark hm(THREAD); Handle h_init_lock(THREAD, init_lock()); - ObjectLocker ol(h_init_lock, THREAD, init_lock() != NULL); + ObjectLocker ol(h_init_lock, THREAD, h_init_lock() != NULL); // abort if someone beat us to the initialization if (!is_not_initialized()) return; // note: not equivalent to is_initialized() @@ -583,7 +583,7 @@ { HandleMark hm(THREAD); Handle h_init_lock(THREAD, init_lock()); - ObjectLocker ol(h_init_lock, THREAD, init_lock() != NULL); + ObjectLocker ol(h_init_lock, THREAD, h_init_lock() != NULL); // rewritten will have been set if loader constraint error found // on an earlier link attempt // don't verify or rewrite if already rewritten @@ -709,7 +709,7 @@ // Step 1 { Handle h_init_lock(THREAD, init_lock()); - ObjectLocker ol(h_init_lock, THREAD, init_lock() != NULL); + ObjectLocker ol(h_init_lock, THREAD, h_init_lock() != NULL); Thread *self = THREAD; // it's passed the current thread @@ -845,13 +845,13 @@ void InstanceKlass::set_initialization_state_and_notify(ClassState state, TRAPS) { Handle h_init_lock(THREAD, init_lock()); - if (init_lock() != NULL) { + if (h_init_lock() != NULL) { ObjectLocker ol(h_init_lock, THREAD); set_init_state(state); fence_and_clear_init_lock(); ol.notify_all(CHECK); } else { - assert(init_lock() != NULL, "The initialization state should never be set twice"); + assert(h_init_lock() != NULL, "The initialization state should never be set twice"); set_init_state(state); } }