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