# HG changeset patch # User dholmes # Date 1428470864 14400 # Node ID cee8d786f3f99e7903df428a1040ea3afafb8abd # Parent c26511266981f7a7ed1b6b9b65a75411b2e43a7c 8067235: embedded/minvm/checknmt fails on compact1 and compact2 with minimal VM Reviewed-by: lfoltan, sspitsyn diff -r c26511266981 -r cee8d786f3f9 hotspot/src/share/vm/runtime/arguments.cpp --- a/hotspot/src/share/vm/runtime/arguments.cpp Tue Apr 07 03:04:29 2015 -0700 +++ b/hotspot/src/share/vm/runtime/arguments.cpp Wed Apr 08 01:27:44 2015 -0400 @@ -3714,8 +3714,8 @@ CommandLineFlags::printFlags(tty, false); vm_exit(0); } + if (match_option(option, "-XX:NativeMemoryTracking", &tail)) { #if INCLUDE_NMT - if (match_option(option, "-XX:NativeMemoryTracking", &tail)) { // The launcher did not setup nmt environment variable properly. if (!MemTracker::check_launcher_nmt_support(tail)) { warning("Native Memory Tracking did not setup properly, using wrong launcher?"); @@ -3731,9 +3731,12 @@ vm_exit_during_initialization("Syntax error, expecting -XX:NativeMemoryTracking=[off|summary|detail]", NULL); } continue; - } +#else + jio_fprintf(defaultStream::error_stream(), + "Native Memory Tracking is not supported in this VM\n"); + return JNI_ERR; #endif - + } #ifndef PRODUCT if (match_option(option, "-XX:+PrintFlagsWithComments")) {