Blame SOURCES/0023-Do-not-enter-critical-section-if-not-necessary.patch

b35d98
From 8c96c9aa17bc85126d3535c8ea9f96a53e05f7e3 Mon Sep 17 00:00:00 2001
b35d98
From: Jakub Filak <jfilak@redhat.com>
b35d98
Date: Wed, 15 Jan 2014 18:52:00 +0100
b35d98
Subject: [PATCH 23/39] Do not enter critical section if not necessary
b35d98
b35d98
Related to rhbz#1051198
b35d98
---
b35d98
 src/abrt-checker.c | 4 ++++
b35d98
 1 file changed, 4 insertions(+)
b35d98
b35d98
diff --git a/src/abrt-checker.c b/src/abrt-checker.c
b35d98
index a5c2bdd..d5160cb 100644
b35d98
--- a/src/abrt-checker.c
b35d98
+++ b/src/abrt-checker.c
b35d98
@@ -2100,6 +2100,10 @@ static void JNICALL callback_on_exception(
b35d98
             jmethodID catch_method,
b35d98
             jlocation catch_location __UNUSED_VAR)
b35d98
 {
b35d98
+    /* This is caught exception and no caught exception is to be reported */
b35d98
+    if (NULL != catch_method && NULL == reportedCaughExceptionTypes)
b35d98
+        return;
b35d98
+
b35d98
     char *exception_type_name = NULL;
b35d98
 
b35d98
     /* all operations should be processed in critical section */
b35d98
-- 
b35d98
1.8.3.1
b35d98