Mercurial > hg > graal-jvmci-8
comparison 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 |
comparison
equal
deleted
inserted
replaced
10404:d0add7016434 | 11129:16b10327b00d |
---|---|
78 if (strcmp(option_line, "=summary") == 0) { | 78 if (strcmp(option_line, "=summary") == 0) { |
79 _tracking_level = NMT_summary; | 79 _tracking_level = NMT_summary; |
80 } else if (strcmp(option_line, "=detail") == 0) { | 80 } else if (strcmp(option_line, "=detail") == 0) { |
81 // detail relies on a stack-walking ability that may not | 81 // detail relies on a stack-walking ability that may not |
82 // be available depending on platform and/or compiler flags | 82 // be available depending on platform and/or compiler flags |
83 if (PLATFORM_NMT_DETAIL_SUPPORTED) { | 83 #if PLATFORM_NATIVE_STACK_WALKING_SUPPORTED |
84 _tracking_level = NMT_detail; | 84 _tracking_level = NMT_detail; |
85 } else { | 85 #else |
86 jio_fprintf(defaultStream::error_stream(), | 86 jio_fprintf(defaultStream::error_stream(), |
87 "NMT detail is not supported on this platform. Using NMT summary instead."); | 87 "NMT detail is not supported on this platform. Using NMT summary instead.\n"); |
88 _tracking_level = NMT_summary; | 88 _tracking_level = NMT_summary; |
89 } | 89 #endif |
90 } else if (strcmp(option_line, "=off") != 0) { | 90 } else if (strcmp(option_line, "=off") != 0) { |
91 vm_exit_during_initialization("Syntax error, expecting -XX:NativeMemoryTracking=[off|summary|detail]", NULL); | 91 vm_exit_during_initialization("Syntax error, expecting -XX:NativeMemoryTracking=[off|summary|detail]", NULL); |
92 } | 92 } |
93 } | 93 } |
94 | 94 |