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

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