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

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