< prev index next >

src/hotspot/share/code/codeBehaviours.cpp


*** 28,41 **** #include "runtime/safepoint.hpp" CompiledICProtectionBehaviour* CompiledICProtectionBehaviour::_current = NULL; bool DefaultICProtectionBehaviour::lock(CompiledMethod* method) { ! if (CompiledIC_lock->owned_by_self()) { return false; } ! CompiledIC_lock->lock(); return true; } void DefaultICProtectionBehaviour::unlock(CompiledMethod* method) { CompiledIC_lock->unlock(); --- 28,41 ---- #include "runtime/safepoint.hpp" CompiledICProtectionBehaviour* CompiledICProtectionBehaviour::_current = NULL; bool DefaultICProtectionBehaviour::lock(CompiledMethod* method) { ! if (is_safe(method)) { return false; } ! CompiledIC_lock->lock_without_safepoint_check(); return true; } void DefaultICProtectionBehaviour::unlock(CompiledMethod* method) { CompiledIC_lock->unlock();
< prev index next >