6939180: Zero locking fix
authortwisti
Tue Mar 30 00:57:55 2010 -0700 (3 years ago)
changeset 1634747d26efc5fa
parent 1633fdd57634910e
child 163547742b654fcb
child 1636f61d795ce6de
6939180: Zero locking fix
Summary: When Zero is running with Shark enabled threads can be left with their _do_not_unlock_if_synchronized flag incorrectly set.
Reviewed-by: twisti
Contributed-by: Gary Benson <gbenson@redhat.com>
src/cpu/zero/vm/cppInterpreter_zero.cpp
--- a/src/cpu/zero/vm/cppInterpreter_zero.cpp Thu Mar 18 14:31:41 2010 -0700
+++ b/src/cpu/zero/vm/cppInterpreter_zero.cpp Tue Mar 30 00:57:55 2010 -0700
@@ -206,7 +206,6 @@ void CppInterpreter::native_entry(method
// Update the invocation counter
if ((UseCompiler || CountCompiledCalls) && !method->is_synchronized()) {
- thread->set_do_not_unlock();
InvocationCounter *counter = method->invocation_counter();
counter->increment();
if (counter->reached_InvocationLimit()) {
@@ -215,7 +214,6 @@ void CppInterpreter::native_entry(method
if (HAS_PENDING_EXCEPTION)
goto unwind_and_return;
}
- thread->clr_do_not_unlock();
}
// Lock if necessary