Index: runtime/vm/os_thread_linux.cc |
diff --git a/runtime/vm/os_thread_linux.cc b/runtime/vm/os_thread_linux.cc |
index 0f8f9584490d9a870c508a6d4c0a596bdb2691f6..ac8a02b7ee512dd90e5e380604a6480d2978d51e 100644 |
--- a/runtime/vm/os_thread_linux.cc |
+++ b/runtime/vm/os_thread_linux.cc |
@@ -17,12 +17,15 @@ |
#include "platform/signal_blocker.h" |
#include "platform/utils.h" |
+#include "vm/profiler.h" |
+ |
namespace dart { |
#define VALIDATE_PTHREAD_RESULT(result) \ |
if (result != 0) { \ |
const int kBufferSize = 1024; \ |
char error_buf[kBufferSize]; \ |
+ NOT_IN_PRODUCT(Profiler::DumpStackTrace(true /* native_stack_trace */)); \ |
FATAL2("pthread error: %d (%s)", result, \ |
Utils::StrError(result, error_buf, kBufferSize)); \ |
} |