8064319: Need to enable -XX:+TraceExceptions in release builds
authorcoleenp
Tue, 16 Dec 2014 19:00:24 -0500
changeset 28174 6e48d3b8d791
parent 28173 51423507bb7e
child 28175 e1fed6244e90
child 28363 047115468f16
8064319: Need to enable -XX:+TraceExceptions in release builds Summary: "-XX:+TraceExceptions" is now supported in product builds. Reviewed-by: sla, ccheung, coleenp Contributed-by: max.ockner@oracle.com
hotspot/src/share/vm/runtime/globals.hpp
hotspot/test/runtime/CommandLine/TraceExceptionsTest.java
--- a/hotspot/src/share/vm/runtime/globals.hpp	Tue Dec 16 12:52:04 2014 +0100
+++ b/hotspot/src/share/vm/runtime/globals.hpp	Tue Dec 16 19:00:24 2014 -0500
@@ -1341,7 +1341,7 @@
   develop(bool, TraceClassInitialization, false,                            \
           "Trace class initialization")                                     \
                                                                             \
-  develop(bool, TraceExceptions, false,                                     \
+  product(bool, TraceExceptions, false,                                     \
           "Trace exceptions")                                               \
                                                                             \
   develop(bool, TraceICs, false,                                            \
--- a/hotspot/test/runtime/CommandLine/TraceExceptionsTest.java	Tue Dec 16 12:52:04 2014 +0100
+++ b/hotspot/test/runtime/CommandLine/TraceExceptionsTest.java	Tue Dec 16 19:00:24 2014 -0500
@@ -33,11 +33,6 @@
 public class TraceExceptionsTest {
     public static void main(String[] args) throws Exception {
 
-        if (!Platform.isDebugBuild()) {
-          System.out.println("Skip the test on product builds since XX:+TraceExceptions is not available on product builds");
-          return;
-        }
-
         ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(
             "-XX:+TraceExceptions", "NoClassFound");
         OutputAnalyzer output = new OutputAnalyzer(pb.start());