diff src/share/vm/services/memTracker.cpp @ 11129:16b10327b00d

8011569: ARM -- avoid native stack walking Summary: ARM compilers do not emit FramePointer on each native frame by default Reviewed-by: dholmes, zgu
author jprovino
date Tue, 16 Jul 2013 10:55:48 -0400
parents fb14e9ed1594
children 90d6c221d4e5
line wrap: on
line diff
--- a/src/share/vm/services/memTracker.cpp	Fri Jun 07 09:33:01 2013 -0700
+++ b/src/share/vm/services/memTracker.cpp	Tue Jul 16 10:55:48 2013 -0400
@@ -80,13 +80,13 @@
   } 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) {
+#if PLATFORM_NATIVE_STACK_WALKING_SUPPORTED
       _tracking_level = NMT_detail;
-    } else {
+#else
       jio_fprintf(defaultStream::error_stream(),
-        "NMT detail is not supported on this platform.  Using NMT summary instead.");
+        "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);
   }