Mercurial > hg > truffle
comparison src/share/vm/runtime/arguments.cpp @ 1768:6ee479178066
6979444: add command line option to print command line flags descriptions
Summary: Implementation of a nonproduct boolean flag XX:PrintFlagsWithComments
Reviewed-by: kamg, dholmes, dsamersoff
author | ikrylov |
---|---|
date | Tue, 31 Aug 2010 03:14:00 -0700 |
parents | ebfb7c68865e |
children | 40d7b43b6fe0 |
comparison
equal
deleted
inserted
replaced
1752:8397081c7ac1 | 1768:6ee479178066 |
---|---|
2853 } | 2853 } |
2854 if (match_option(option, "-XX:+PrintFlagsInitial", &tail)) { | 2854 if (match_option(option, "-XX:+PrintFlagsInitial", &tail)) { |
2855 CommandLineFlags::printFlags(); | 2855 CommandLineFlags::printFlags(); |
2856 vm_exit(0); | 2856 vm_exit(0); |
2857 } | 2857 } |
2858 | |
2859 #ifndef PRODUCT | |
2860 if (match_option(option, "-XX:+PrintFlagsWithComments", &tail)) { | |
2861 CommandLineFlags::printFlags(true); | |
2862 vm_exit(0); | |
2863 } | |
2864 #endif | |
2858 } | 2865 } |
2859 | 2866 |
2860 if (IgnoreUnrecognizedVMOptions) { | 2867 if (IgnoreUnrecognizedVMOptions) { |
2861 // uncast const to modify the flag args->ignoreUnrecognized | 2868 // uncast const to modify the flag args->ignoreUnrecognized |
2862 *(jboolean*)(&args->ignoreUnrecognized) = true; | 2869 *(jboolean*)(&args->ignoreUnrecognized) = true; |