Mercurial > hg > graal-compiler
comparison src/share/vm/runtime/arguments.cpp @ 1150:f62a22282a47
6914622: Print values of all flags for product VM
Summary: Change the flag -XX:+PrintFlagsFinal to product and add new product flag -XX:+PrintFlagsInitial.
Reviewed-by: phh, ysr
Contributed-by: gbenson@redhat.com
author | kvn |
---|---|
date | Thu, 07 Jan 2010 16:24:17 -0800 |
parents | e66fd840cb6b |
children | 4e6abf09f540 |
comparison
equal
deleted
inserted
replaced
1144:9b9c1ee9b3f6 | 1150:f62a22282a47 |
---|---|
2631 IgnoreUnrecognizedVMOptions = true; | 2631 IgnoreUnrecognizedVMOptions = true; |
2632 } | 2632 } |
2633 if (match_option(option, "-XX:-IgnoreUnrecognizedVMOptions", &tail)) { | 2633 if (match_option(option, "-XX:-IgnoreUnrecognizedVMOptions", &tail)) { |
2634 IgnoreUnrecognizedVMOptions = false; | 2634 IgnoreUnrecognizedVMOptions = false; |
2635 } | 2635 } |
2636 if (match_option(option, "-XX:+PrintFlagsInitial", &tail)) { | |
2637 CommandLineFlags::printFlags(); | |
2638 vm_exit(0); | |
2639 } | |
2636 } | 2640 } |
2637 | 2641 |
2638 if (IgnoreUnrecognizedVMOptions) { | 2642 if (IgnoreUnrecognizedVMOptions) { |
2639 // uncast const to modify the flag args->ignoreUnrecognized | 2643 // uncast const to modify the flag args->ignoreUnrecognized |
2640 *(jboolean*)(&args->ignoreUnrecognized) = true; | 2644 *(jboolean*)(&args->ignoreUnrecognized) = true; |
2793 | 2797 |
2794 if (PrintCommandLineFlags) { | 2798 if (PrintCommandLineFlags) { |
2795 CommandLineFlags::printSetFlags(); | 2799 CommandLineFlags::printSetFlags(); |
2796 } | 2800 } |
2797 | 2801 |
2798 #ifdef ASSERT | |
2799 if (PrintFlagsFinal) { | 2802 if (PrintFlagsFinal) { |
2800 CommandLineFlags::printFlags(); | 2803 CommandLineFlags::printFlags(); |
2801 } | 2804 } |
2802 #endif | |
2803 | 2805 |
2804 return JNI_OK; | 2806 return JNI_OK; |
2805 } | 2807 } |
2806 | 2808 |
2807 int Arguments::PropertyList_count(SystemProperty* pl) { | 2809 int Arguments::PropertyList_count(SystemProperty* pl) { |