8064319: Need to enable -XX:+TraceExceptions in release builds

Tue, 16 Dec 2014 19:00:24 -0500

author
coleenp
date
Tue, 16 Dec 2014 19:00:24 -0500
changeset 9990
219f17701f43
parent 9988
1b2d99958c29
child 9991
3746571843dd

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

src/share/vm/runtime/globals.hpp file | annotate | diff | comparison | revisions
test/runtime/CommandLine/TraceExceptionsTest.java file | annotate | diff | comparison | revisions
     1.1 --- a/src/share/vm/runtime/globals.hpp	Mon Nov 10 10:13:10 2014 -0800
     1.2 +++ b/src/share/vm/runtime/globals.hpp	Tue Dec 16 19:00:24 2014 -0500
     1.3 @@ -1339,7 +1339,7 @@
     1.4    develop(bool, TraceClassInitialization, false,                            \
     1.5            "Trace class initialization")                                     \
     1.6                                                                              \
     1.7 -  develop(bool, TraceExceptions, false,                                     \
     1.8 +  product(bool, TraceExceptions, false,                                     \
     1.9            "Trace exceptions")                                               \
    1.10                                                                              \
    1.11    develop(bool, TraceICs, false,                                            \
     2.1 --- a/test/runtime/CommandLine/TraceExceptionsTest.java	Mon Nov 10 10:13:10 2014 -0800
     2.2 +++ b/test/runtime/CommandLine/TraceExceptionsTest.java	Tue Dec 16 19:00:24 2014 -0500
     2.3 @@ -33,11 +33,6 @@
     2.4  public class TraceExceptionsTest {
     2.5      public static void main(String[] args) throws Exception {
     2.6  
     2.7 -        if (!Platform.isDebugBuild()) {
     2.8 -          System.out.println("Skip the test on product builds since XX:+TraceExceptions is not available on product builds");
     2.9 -          return;
    2.10 -        }
    2.11 -
    2.12          ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(
    2.13              "-XX:+TraceExceptions", "NoClassFound");
    2.14          OutputAnalyzer output = new OutputAnalyzer(pb.start());

mercurial