# HG changeset patch # User nloodin # Date 1348217788 -7200 # Node ID b711844284e29b27dd22cc2a211d9f651ab7dc55 # Parent 8440414b0fd8f4dbc2c05a1ef668c839b7285fc0 7200092: Make NMT a bit friendlier to work with Reviewed-by: kvn, ysr, azeemj diff -r 8440414b0fd8 -r b711844284e2 src/share/vm/services/memTracker.cpp --- a/src/share/vm/services/memTracker.cpp Thu Sep 20 03:49:15 2012 -0700 +++ b/src/share/vm/services/memTracker.cpp Fri Sep 21 10:56:28 2012 +0200 @@ -71,8 +71,13 @@ _tracking_level = NMT_off; if (strncmp(option_line, "=summary", 8) == 0) { _tracking_level = NMT_summary; - } else if (strncmp(option_line, "=detail", 8) == 0) { + } else if (strncmp(option_line, "=detail", 7) == 0) { _tracking_level = NMT_detail; + } else { + char msg[255]; + //+1 to remove the '=' character + jio_snprintf(msg, 255, "Unknown option given to XX:NativeMemoryTracking: %s", option_line+1); + vm_exit_during_initialization(msg, NULL); } }