mirror of
https://github.com/dart-lang/sdk
synced 2024-10-06 14:59:41 +00:00
[vm] Remove redundant Profiler::DumpStackTrace().
Every FATAL/ASSERT/UNREACHABLE already does this. Change-Id: Ibc638767e0b58d04f8e453ff7bc1b70858ff4716 Reviewed-on: https://dart-review.googlesource.com/60323 Reviewed-by: Zach Anderson <zra@google.com> Commit-Queue: Ryan Macnak <rmacnak@google.com>
This commit is contained in:
parent
2bc9025be3
commit
7757fa784a
|
@ -17,15 +17,12 @@
|
|||
#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_message[kBufferSize]; \
|
||||
NOT_IN_PRODUCT(Profiler::DumpStackTrace()); \
|
||||
Utils::StrError(result, error_message, kBufferSize); \
|
||||
FATAL2("pthread error: %d (%s)", result, error_message); \
|
||||
}
|
||||
|
@ -37,7 +34,6 @@ namespace dart {
|
|||
if (result != 0) { \
|
||||
const int kBufferSize = 1024; \
|
||||
char error_message[kBufferSize]; \
|
||||
NOT_IN_PRODUCT(Profiler::DumpStackTrace()); \
|
||||
Utils::StrError(result, error_message, kBufferSize); \
|
||||
FATAL3("[%s] pthread error: %d (%s)", name_, result, error_message); \
|
||||
}
|
||||
|
|
|
@ -19,15 +19,12 @@
|
|||
#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()); \
|
||||
FATAL2("pthread error: %d (%s)", result, \
|
||||
Utils::StrError(result, error_buf, kBufferSize)); \
|
||||
}
|
||||
|
@ -40,7 +37,6 @@ namespace dart {
|
|||
if (result != 0) { \
|
||||
const int kBufferSize = 1024; \
|
||||
char error_buf[kBufferSize]; \
|
||||
NOT_IN_PRODUCT(Profiler::DumpStackTrace()); \
|
||||
FATAL3("[%s] pthread error: %d (%s)", name_, result, \
|
||||
Utils::StrError(result, error_buf, kBufferSize)); \
|
||||
}
|
||||
|
|
|
@ -23,15 +23,12 @@
|
|||
#include "platform/safe_stack.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_message[kBufferSize]; \
|
||||
NOT_IN_PRODUCT(Profiler::DumpStackTrace()); \
|
||||
Utils::StrError(result, error_message, kBufferSize); \
|
||||
FATAL2("pthread error: %d (%s)", result, error_message); \
|
||||
}
|
||||
|
@ -43,7 +40,6 @@ namespace dart {
|
|||
if (result != 0) { \
|
||||
const int kBufferSize = 1024; \
|
||||
char error_message[kBufferSize]; \
|
||||
NOT_IN_PRODUCT(Profiler::DumpStackTrace()); \
|
||||
Utils::StrError(result, error_message, kBufferSize); \
|
||||
FATAL3("[%s] pthread error: %d (%s)", name_, result, error_message); \
|
||||
}
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
#include "platform/utils.h"
|
||||
|
||||
#include "vm/isolate.h"
|
||||
#include "vm/profiler.h"
|
||||
|
||||
namespace dart {
|
||||
|
||||
|
@ -39,7 +38,6 @@ static void unmap(void* address, intptr_t size) {
|
|||
int error = errno;
|
||||
const int kBufferSize = 1024;
|
||||
char error_buf[kBufferSize];
|
||||
NOT_IN_PRODUCT(Profiler::DumpStackTrace());
|
||||
FATAL2("munmap error: %d (%s)", error,
|
||||
Utils::StrError(error, error_buf, kBufferSize));
|
||||
}
|
||||
|
@ -132,7 +130,6 @@ void VirtualMemory::Protect(void* address, intptr_t size, Protection mode) {
|
|||
int error = errno;
|
||||
const int kBufferSize = 1024;
|
||||
char error_buf[kBufferSize];
|
||||
NOT_IN_PRODUCT(Profiler::DumpStackTrace());
|
||||
FATAL2("mprotect error: %d (%s)", error,
|
||||
Utils::StrError(error, error_buf, kBufferSize));
|
||||
}
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
#include "platform/utils.h"
|
||||
|
||||
#include "vm/isolate.h"
|
||||
#include "vm/profiler.h"
|
||||
|
||||
namespace dart {
|
||||
|
||||
|
@ -39,7 +38,6 @@ static void unmap(void* address, intptr_t size) {
|
|||
int error = errno;
|
||||
const int kBufferSize = 1024;
|
||||
char error_buf[kBufferSize];
|
||||
NOT_IN_PRODUCT(Profiler::DumpStackTrace());
|
||||
FATAL2("munmap error: %d (%s)", error,
|
||||
Utils::StrError(error, error_buf, kBufferSize));
|
||||
}
|
||||
|
@ -132,7 +130,6 @@ void VirtualMemory::Protect(void* address, intptr_t size, Protection mode) {
|
|||
int error = errno;
|
||||
const int kBufferSize = 1024;
|
||||
char error_buf[kBufferSize];
|
||||
NOT_IN_PRODUCT(Profiler::DumpStackTrace());
|
||||
FATAL2("mprotect error: %d (%s)", error,
|
||||
Utils::StrError(error, error_buf, kBufferSize));
|
||||
}
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
#include "platform/utils.h"
|
||||
|
||||
#include "vm/isolate.h"
|
||||
#include "vm/profiler.h"
|
||||
|
||||
namespace dart {
|
||||
|
||||
|
@ -39,7 +38,6 @@ static void unmap(void* address, intptr_t size) {
|
|||
int error = errno;
|
||||
const int kBufferSize = 1024;
|
||||
char error_buf[kBufferSize];
|
||||
NOT_IN_PRODUCT(Profiler::DumpStackTrace());
|
||||
FATAL2("munmap error: %d (%s)", error,
|
||||
Utils::StrError(error, error_buf, kBufferSize));
|
||||
}
|
||||
|
@ -132,7 +130,6 @@ void VirtualMemory::Protect(void* address, intptr_t size, Protection mode) {
|
|||
int error = errno;
|
||||
const int kBufferSize = 1024;
|
||||
char error_buf[kBufferSize];
|
||||
NOT_IN_PRODUCT(Profiler::DumpStackTrace());
|
||||
FATAL2("mprotect error: %d (%s)", error,
|
||||
Utils::StrError(error, error_buf, kBufferSize));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue