1.1 --- a/src/share/vm/services/memTracker.cpp Thu Sep 20 03:49:15 2012 -0700 1.2 +++ b/src/share/vm/services/memTracker.cpp Fri Sep 21 10:56:28 2012 +0200 1.3 @@ -71,8 +71,13 @@ 1.4 _tracking_level = NMT_off; 1.5 if (strncmp(option_line, "=summary", 8) == 0) { 1.6 _tracking_level = NMT_summary; 1.7 - } else if (strncmp(option_line, "=detail", 8) == 0) { 1.8 + } else if (strncmp(option_line, "=detail", 7) == 0) { 1.9 _tracking_level = NMT_detail; 1.10 + } else { 1.11 + char msg[255]; 1.12 + //+1 to remove the '=' character 1.13 + jio_snprintf(msg, 255, "Unknown option given to XX:NativeMemoryTracking: %s", option_line+1); 1.14 + vm_exit_during_initialization(msg, NULL); 1.15 } 1.16 } 1.17