Mercurial > hg > truffle
comparison src/share/vm/runtime/arguments.cpp @ 4773:4f25538b54c9
7120511: Add diagnostic commands
Reviewed-by: acorn, phh, dcubed, sspitsyn
author | fparain |
---|---|
date | Mon, 09 Jan 2012 10:27:24 +0100 |
parents | 55d777c0860a |
children | 865e0817f32b |
comparison
equal
deleted
inserted
replaced
4754:66259eca2bf7 | 4773:4f25538b54c9 |
---|---|
2321 VM_Version::internal_vm_info_string()); | 2321 VM_Version::internal_vm_info_string()); |
2322 vm_exit(0); | 2322 vm_exit(0); |
2323 #ifndef PRODUCT | 2323 #ifndef PRODUCT |
2324 // -Xprintflags | 2324 // -Xprintflags |
2325 } else if (match_option(option, "-Xprintflags", &tail)) { | 2325 } else if (match_option(option, "-Xprintflags", &tail)) { |
2326 CommandLineFlags::printFlags(); | 2326 CommandLineFlags::printFlags(tty, false); |
2327 vm_exit(0); | 2327 vm_exit(0); |
2328 #endif | 2328 #endif |
2329 // -D | 2329 // -D |
2330 } else if (match_option(option, "-D", &tail)) { | 2330 } else if (match_option(option, "-D", &tail)) { |
2331 if (!add_property(tail)) { | 2331 if (!add_property(tail)) { |
2969 } | 2969 } |
2970 if (match_option(option, "-XX:-IgnoreUnrecognizedVMOptions", &tail)) { | 2970 if (match_option(option, "-XX:-IgnoreUnrecognizedVMOptions", &tail)) { |
2971 IgnoreUnrecognizedVMOptions = false; | 2971 IgnoreUnrecognizedVMOptions = false; |
2972 } | 2972 } |
2973 if (match_option(option, "-XX:+PrintFlagsInitial", &tail)) { | 2973 if (match_option(option, "-XX:+PrintFlagsInitial", &tail)) { |
2974 CommandLineFlags::printFlags(); | 2974 CommandLineFlags::printFlags(tty, false); |
2975 vm_exit(0); | 2975 vm_exit(0); |
2976 } | 2976 } |
2977 | 2977 |
2978 #ifndef PRODUCT | 2978 #ifndef PRODUCT |
2979 if (match_option(option, "-XX:+PrintFlagsWithComments", &tail)) { | 2979 if (match_option(option, "-XX:+PrintFlagsWithComments", &tail)) { |
2980 CommandLineFlags::printFlags(true); | 2980 CommandLineFlags::printFlags(tty, true); |
2981 vm_exit(0); | 2981 vm_exit(0); |
2982 } | 2982 } |
2983 #endif | 2983 #endif |
2984 } | 2984 } |
2985 | 2985 |
3168 } | 3168 } |
3169 } | 3169 } |
3170 #endif | 3170 #endif |
3171 | 3171 |
3172 if (PrintCommandLineFlags) { | 3172 if (PrintCommandLineFlags) { |
3173 CommandLineFlags::printSetFlags(); | 3173 CommandLineFlags::printSetFlags(tty); |
3174 } | 3174 } |
3175 | 3175 |
3176 // Apply CPU specific policy for the BiasedLocking | 3176 // Apply CPU specific policy for the BiasedLocking |
3177 if (UseBiasedLocking) { | 3177 if (UseBiasedLocking) { |
3178 if (!VM_Version::use_biased_locking() && | 3178 if (!VM_Version::use_biased_locking() && |