hotspot/src/share/vm/utilities/exceptions.cpp
changeset 31336 897c602148d9
parent 26135 82b516c550f7
child 31337 98b10897ee17
--- a/hotspot/src/share/vm/utilities/exceptions.cpp	Mon Jun 08 15:40:28 2015 +0200
+++ b/hotspot/src/share/vm/utilities/exceptions.cpp	Tue Jun 09 12:22:21 2015 -0400
@@ -160,9 +160,11 @@
   thread->set_pending_exception(h_exception(), file, line);
 
   // vm log
-  Events::log_exception(thread, "Exception <%s%s%s> (" INTPTR_FORMAT ") thrown at [%s, line %d]",
-                        h_exception->print_value_string(), message ? ": " : "", message ? message : "",
-                        (address)h_exception(), file, line);
+  if (LogEvents){
+    Events::log_exception(thread, "Exception <%s%s%s> (" INTPTR_FORMAT ") thrown at [%s, line %d]",
+                          h_exception->print_value_string(), message ? ": " : "", message ? message : "",
+                          (address)h_exception(), file, line);
+  }
 }