[haiku-commits] r41486 - haiku/branches/developer/bonefish/signals/src/system/kernel/arch/x86

  • From: ingo_weinhold@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sat, 14 May 2011 01:05:09 +0200 (CEST)

Author: bonefish
Date: 2011-05-14 01:05:09 +0200 (Sat, 14 May 2011)
New Revision: 41486
Changeset: https://dev.haiku-os.org/changeset/41486

Modified:
   
haiku/branches/developer/bonefish/signals/src/system/kernel/arch/x86/arch_user_debugger.cpp
Log:
x86_exit_user_debug_at_kernel_entry(), x86_init_user_debug_at_kernel_exit():
Removed superfluous locking of the obsolete global threads spinlock.


Modified: 
haiku/branches/developer/bonefish/signals/src/system/kernel/arch/x86/arch_user_debugger.cpp
===================================================================
--- 
haiku/branches/developer/bonefish/signals/src/system/kernel/arch/x86/arch_user_debugger.cpp
 2011-05-13 22:54:13 UTC (rev 41485)
+++ 
haiku/branches/developer/bonefish/signals/src/system/kernel/arch/x86/arch_user_debugger.cpp
 2011-05-13 23:05:09 UTC (rev 41486)
@@ -781,7 +781,6 @@
        // disable kernel breakpoints
        disable_breakpoints();
 
-       GRAB_THREAD_LOCK();
        GRAB_TEAM_DEBUG_INFO_LOCK(thread->team->debug_info);
 
        arch_team_debug_info &teamInfo = thread->team->debug_info.arch_info;
@@ -792,7 +791,6 @@
        atomic_or(&thread->flags, THREAD_FLAGS_BREAKPOINTS_INSTALLED);
 
        RELEASE_TEAM_DEBUG_INFO_LOCK(thread->team->debug_info);
-       RELEASE_THREAD_LOCK();
 }
 
 
@@ -815,8 +813,6 @@
        if (!(thread->flags & THREAD_FLAGS_BREAKPOINTS_INSTALLED))
                return;
 
-       GRAB_THREAD_LOCK();
-
        // disable user breakpoints
        disable_breakpoints();
 
@@ -827,8 +823,6 @@
        RELEASE_TEAM_DEBUG_INFO_LOCK(kernelTeam->debug_info);
 
        atomic_and(&thread->flags, ~THREAD_FLAGS_BREAKPOINTS_INSTALLED);
-
-       RELEASE_THREAD_LOCK();
 }
 
 


Other related posts:

  • » [haiku-commits] r41486 - haiku/branches/developer/bonefish/signals/src/system/kernel/arch/x86 - ingo_weinhold