3863 if (MemTracker::tracking_level() >= NMT_summary) { 3864 MemTracker::init(); 3865 } 3866 } else { 3867 vm_exit_during_initialization("Syntax error, expecting -XX:NativeMemoryTracking=[off|summary|detail]", NULL); 3868 } 3869 continue; 3870 #else 3871 jio_fprintf(defaultStream::error_stream(), 3872 "Native Memory Tracking is not supported in this VM\n"); 3873 return JNI_ERR; 3874 #endif 3875 } 3876 3877 #ifndef PRODUCT 3878 if (match_option(option, "-XX:+PrintFlagsWithComments")) { 3879 CommandLineFlags::printFlags(tty, true); 3880 vm_exit(0); 3881 } 3882 #endif 3883 } 3884 return JNI_OK; 3885 } 3886 3887 static void print_options(const JavaVMInitArgs *args) { 3888 const char* tail; 3889 for (int index = 0; index < args->nOptions; index++) { 3890 const JavaVMOption *option = args->options + index; 3891 if (match_option(option, "-XX:", &tail)) { 3892 logOption(tail); 3893 } 3894 } 3895 } 3896 3897 bool Arguments::handle_deprecated_print_gc_flags() { 3898 if (PrintGC) { 3899 log_warning(gc)("-XX:+PrintGC is deprecated. Will use -Xlog:gc instead."); 3900 } 3901 if (PrintGCDetails) { 3902 log_warning(gc)("-XX:+PrintGCDetails is deprecated. Will use -Xlog:gc* instead."); | 3863 if (MemTracker::tracking_level() >= NMT_summary) { 3864 MemTracker::init(); 3865 } 3866 } else { 3867 vm_exit_during_initialization("Syntax error, expecting -XX:NativeMemoryTracking=[off|summary|detail]", NULL); 3868 } 3869 continue; 3870 #else 3871 jio_fprintf(defaultStream::error_stream(), 3872 "Native Memory Tracking is not supported in this VM\n"); 3873 return JNI_ERR; 3874 #endif 3875 } 3876 3877 #ifndef PRODUCT 3878 if (match_option(option, "-XX:+PrintFlagsWithComments")) { 3879 CommandLineFlags::printFlags(tty, true); 3880 vm_exit(0); 3881 } 3882 #endif 3883 3884 if (match_option(option, "-XX:+UseAppCDS")) { 3885 Flag* flag = Flag::find_flag("SharedArchiveFile", 17, true, true); 3886 if (flag->is_diagnostic()) { 3887 flag->clear_diagnostic(); 3888 } 3889 continue; 3890 } 3891 } 3892 return JNI_OK; 3893 } 3894 3895 static void print_options(const JavaVMInitArgs *args) { 3896 const char* tail; 3897 for (int index = 0; index < args->nOptions; index++) { 3898 const JavaVMOption *option = args->options + index; 3899 if (match_option(option, "-XX:", &tail)) { 3900 logOption(tail); 3901 } 3902 } 3903 } 3904 3905 bool Arguments::handle_deprecated_print_gc_flags() { 3906 if (PrintGC) { 3907 log_warning(gc)("-XX:+PrintGC is deprecated. Will use -Xlog:gc instead."); 3908 } 3909 if (PrintGCDetails) { 3910 log_warning(gc)("-XX:+PrintGCDetails is deprecated. Will use -Xlog:gc* instead."); |