From 0b54af4f914df9665045d10b6e6d08ebd6035a03 Mon Sep 17 00:00:00 2001 From: nealsid Date: Tue, 18 May 2010 17:50:25 +0000 Subject: [PATCH] Patch from Vitaly to remove synchronization and make exception handling code single-threaded git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@602 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/client/windows/handler/exception_handler.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/client/windows/handler/exception_handler.cc b/src/client/windows/handler/exception_handler.cc index d27ddcc1..27c28e76 100644 --- a/src/client/windows/handler/exception_handler.cc +++ b/src/client/windows/handler/exception_handler.cc @@ -344,7 +344,7 @@ class AutoExceptionHandler { AutoExceptionHandler() { // Increment handler_stack_index_ so that if another Breakpad handler is // registered using this same HandleException function, and it needs to be - // called while this handler is running (either becaause this handler + // called while this handler is running (either because this handler // declines to handle the exception, or an exception occurs during // handling), HandleException will find the appropriate ExceptionHandler // object in handler_stack_ to deliver the exception to. @@ -362,7 +362,6 @@ class AutoExceptionHandler { handler_ = ExceptionHandler::handler_stack_->at( ExceptionHandler::handler_stack_->size() - ++ExceptionHandler::handler_stack_index_); - LeaveCriticalSection(&ExceptionHandler::handler_stack_critical_section_); // In case another exception occurs while this handler is doing its thing, // it should be delivered to the previous filter. @@ -381,7 +380,6 @@ class AutoExceptionHandler { #endif // _MSC_VER >= 1400 _set_purecall_handler(ExceptionHandler::HandlePureVirtualCall); - EnterCriticalSection(&ExceptionHandler::handler_stack_critical_section_); --ExceptionHandler::handler_stack_index_; LeaveCriticalSection(&ExceptionHandler::handler_stack_critical_section_); }