< prev index next >

src/hotspot/share/runtime/arguments.cpp

Print this page
rev 54260 : 8220786: Create new switch to redirect error reporting output to stdout or stderr
Reviewed-by:


2858           return JNI_EINVAL;
2859         }
2860         if (FLAG_SET_CMDLINE(bool, AlwaysTenure, false) != JVMFlag::SUCCESS) {
2861           return JNI_EINVAL;
2862         }
2863       }
2864     } else if (match_option(option, "-XX:+DisplayVMOutputToStderr")) {
2865       if (FLAG_SET_CMDLINE(bool, DisplayVMOutputToStdout, false) != JVMFlag::SUCCESS) {
2866         return JNI_EINVAL;
2867       }
2868       if (FLAG_SET_CMDLINE(bool, DisplayVMOutputToStderr, true) != JVMFlag::SUCCESS) {
2869         return JNI_EINVAL;
2870       }
2871     } else if (match_option(option, "-XX:+DisplayVMOutputToStdout")) {
2872       if (FLAG_SET_CMDLINE(bool, DisplayVMOutputToStderr, false) != JVMFlag::SUCCESS) {
2873         return JNI_EINVAL;
2874       }
2875       if (FLAG_SET_CMDLINE(bool, DisplayVMOutputToStdout, true) != JVMFlag::SUCCESS) {
2876         return JNI_EINVAL;
2877       }














2878     } else if (match_option(option, "-XX:+ExtendedDTraceProbes")) {
2879 #if defined(DTRACE_ENABLED)
2880       if (FLAG_SET_CMDLINE(bool, ExtendedDTraceProbes, true) != JVMFlag::SUCCESS) {
2881         return JNI_EINVAL;
2882       }
2883       if (FLAG_SET_CMDLINE(bool, DTraceMethodProbes, true) != JVMFlag::SUCCESS) {
2884         return JNI_EINVAL;
2885       }
2886       if (FLAG_SET_CMDLINE(bool, DTraceAllocProbes, true) != JVMFlag::SUCCESS) {
2887         return JNI_EINVAL;
2888       }
2889       if (FLAG_SET_CMDLINE(bool, DTraceMonitorProbes, true) != JVMFlag::SUCCESS) {
2890         return JNI_EINVAL;
2891       }
2892 #else // defined(DTRACE_ENABLED)
2893       jio_fprintf(defaultStream::error_stream(),
2894                   "ExtendedDTraceProbes flag is not applicable for this configuration\n");
2895       return JNI_EINVAL;
2896 #endif // defined(DTRACE_ENABLED)
2897 #ifdef ASSERT




2858           return JNI_EINVAL;
2859         }
2860         if (FLAG_SET_CMDLINE(bool, AlwaysTenure, false) != JVMFlag::SUCCESS) {
2861           return JNI_EINVAL;
2862         }
2863       }
2864     } else if (match_option(option, "-XX:+DisplayVMOutputToStderr")) {
2865       if (FLAG_SET_CMDLINE(bool, DisplayVMOutputToStdout, false) != JVMFlag::SUCCESS) {
2866         return JNI_EINVAL;
2867       }
2868       if (FLAG_SET_CMDLINE(bool, DisplayVMOutputToStderr, true) != JVMFlag::SUCCESS) {
2869         return JNI_EINVAL;
2870       }
2871     } else if (match_option(option, "-XX:+DisplayVMOutputToStdout")) {
2872       if (FLAG_SET_CMDLINE(bool, DisplayVMOutputToStderr, false) != JVMFlag::SUCCESS) {
2873         return JNI_EINVAL;
2874       }
2875       if (FLAG_SET_CMDLINE(bool, DisplayVMOutputToStdout, true) != JVMFlag::SUCCESS) {
2876         return JNI_EINVAL;
2877       }
2878     } else if (match_option(option, "-XX:+ErrorFileToStderr")) {
2879       if (FLAG_SET_CMDLINE(bool, ErrorFileToStdout, false) != JVMFlag::SUCCESS) {
2880         return JNI_EINVAL;
2881       }
2882       if (FLAG_SET_CMDLINE(bool, ErrorFileToStderr, true) != JVMFlag::SUCCESS) {
2883         return JNI_EINVAL;
2884       }
2885     } else if (match_option(option, "-XX:+ErrorFileToStdout")) {
2886       if (FLAG_SET_CMDLINE(bool, ErrorFileToStderr, false) != JVMFlag::SUCCESS) {
2887         return JNI_EINVAL;
2888       }
2889       if (FLAG_SET_CMDLINE(bool, ErrorFileToStdout, true) != JVMFlag::SUCCESS) {
2890         return JNI_EINVAL;
2891       }
2892     } else if (match_option(option, "-XX:+ExtendedDTraceProbes")) {
2893 #if defined(DTRACE_ENABLED)
2894       if (FLAG_SET_CMDLINE(bool, ExtendedDTraceProbes, true) != JVMFlag::SUCCESS) {
2895         return JNI_EINVAL;
2896       }
2897       if (FLAG_SET_CMDLINE(bool, DTraceMethodProbes, true) != JVMFlag::SUCCESS) {
2898         return JNI_EINVAL;
2899       }
2900       if (FLAG_SET_CMDLINE(bool, DTraceAllocProbes, true) != JVMFlag::SUCCESS) {
2901         return JNI_EINVAL;
2902       }
2903       if (FLAG_SET_CMDLINE(bool, DTraceMonitorProbes, true) != JVMFlag::SUCCESS) {
2904         return JNI_EINVAL;
2905       }
2906 #else // defined(DTRACE_ENABLED)
2907       jio_fprintf(defaultStream::error_stream(),
2908                   "ExtendedDTraceProbes flag is not applicable for this configuration\n");
2909       return JNI_EINVAL;
2910 #endif // defined(DTRACE_ENABLED)
2911 #ifdef ASSERT


< prev index next >