hotspot/src/share/vm/utilities/exceptions.cpp
changeset 31337 98b10897ee17
parent 31335 60081f497e75
parent 31336 897c602148d9
child 33105 294e48b4f704
child 33160 c59f1676d27e
--- a/hotspot/src/share/vm/utilities/exceptions.cpp	Tue Jun 09 10:26:25 2015 -0400
+++ b/hotspot/src/share/vm/utilities/exceptions.cpp	Wed Jun 10 04:39:15 2015 +0200
@@ -164,9 +164,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);
+  }
 }