src/share/vm/runtime/arguments.cpp

changeset 7761
d8f133adf05d
parent 7755
8f07afdc1cd1
parent 7684
4b8dc0e79adb
child 7881
68de83e1d912
equal deleted inserted replaced
7760:48fa04e21c87 7761:d8f133adf05d
3835 } 3835 }
3836 if (match_option(option, "-XX:+PrintFlagsInitial", &tail)) { 3836 if (match_option(option, "-XX:+PrintFlagsInitial", &tail)) {
3837 CommandLineFlags::printFlags(tty, false); 3837 CommandLineFlags::printFlags(tty, false);
3838 vm_exit(0); 3838 vm_exit(0);
3839 } 3839 }
3840 if (match_option(option, "-XX:NativeMemoryTracking", &tail)) {
3840 #if INCLUDE_NMT 3841 #if INCLUDE_NMT
3841 if (match_option(option, "-XX:NativeMemoryTracking", &tail)) {
3842 // The launcher did not setup nmt environment variable properly. 3842 // The launcher did not setup nmt environment variable properly.
3843 if (!MemTracker::check_launcher_nmt_support(tail)) { 3843 if (!MemTracker::check_launcher_nmt_support(tail)) {
3844 warning("Native Memory Tracking did not setup properly, using wrong launcher?"); 3844 warning("Native Memory Tracking did not setup properly, using wrong launcher?");
3845 } 3845 }
3846 3846
3851 MemTracker::init(); 3851 MemTracker::init();
3852 } 3852 }
3853 } else { 3853 } else {
3854 vm_exit_during_initialization("Syntax error, expecting -XX:NativeMemoryTracking=[off|summary|detail]", NULL); 3854 vm_exit_during_initialization("Syntax error, expecting -XX:NativeMemoryTracking=[off|summary|detail]", NULL);
3855 } 3855 }
3856 } 3856 #else
3857 jio_fprintf(defaultStream::error_stream(),
3858 "Native Memory Tracking is not supported in this VM\n");
3859 return JNI_ERR;
3857 #endif 3860 #endif
3861 }
3858 3862
3859 3863
3860 #ifndef PRODUCT 3864 #ifndef PRODUCT
3861 if (match_option(option, "-XX:+PrintFlagsWithComments", &tail)) { 3865 if (match_option(option, "-XX:+PrintFlagsWithComments", &tail)) {
3862 CommandLineFlags::printFlags(tty, true); 3866 CommandLineFlags::printFlags(tty, true);

mercurial