src/share/vm/services/memTracker.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File hotspot.walk.1 Cdiff src/share/vm/services/memTracker.cpp

src/share/vm/services/memTracker.cpp

Print this page

        

*** 78,94 **** if (strcmp(option_line, "=summary") == 0) { _tracking_level = NMT_summary; } else if (strcmp(option_line, "=detail") == 0) { // detail relies on a stack-walking ability that may not // be available depending on platform and/or compiler flags ! if (PLATFORM_NMT_DETAIL_SUPPORTED) { _tracking_level = NMT_detail; ! } else { jio_fprintf(defaultStream::error_stream(), ! "NMT detail is not supported on this platform. Using NMT summary instead."); _tracking_level = NMT_summary; ! } } else if (strcmp(option_line, "=off") != 0) { vm_exit_during_initialization("Syntax error, expecting -XX:NativeMemoryTracking=[off|summary|detail]", NULL); } } --- 78,94 ---- if (strcmp(option_line, "=summary") == 0) { _tracking_level = NMT_summary; } else if (strcmp(option_line, "=detail") == 0) { // detail relies on a stack-walking ability that may not // be available depending on platform and/or compiler flags ! #if PLATFORM_NATIVE_STACK_WALKING_SUPPORTED _tracking_level = NMT_detail; ! #else jio_fprintf(defaultStream::error_stream(), ! "NMT detail is not supported on this platform. Using NMT summary instead.\n"); _tracking_level = NMT_summary; ! #endif } else if (strcmp(option_line, "=off") != 0) { vm_exit_during_initialization("Syntax error, expecting -XX:NativeMemoryTracking=[off|summary|detail]", NULL); } }
src/share/vm/services/memTracker.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File