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

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