| Index: runtime/platform/assert.cc
|
| diff --git a/runtime/platform/assert.cc b/runtime/platform/assert.cc
|
| index ff71e3f78c8cefb827bfb0419fee4cb8fe02d668..921a56461b8187e762a4db8ec88b5ee2655dc7aa 100644
|
| --- a/runtime/platform/assert.cc
|
| +++ b/runtime/platform/assert.cc
|
| @@ -6,6 +6,7 @@
|
|
|
| #include "platform/globals.h"
|
| #include "vm/os.h"
|
| +#include "vm/profiler.h"
|
|
|
| namespace dart {
|
|
|
| @@ -40,9 +41,8 @@ void DynamicAssertionHelper::Fail(const char* format, ...) {
|
| // In case of failed assertions, abort right away. Otherwise, wait
|
| // until the program is exiting before producing a non-zero exit
|
| // code through abort.
|
| - // TODO(5411324): replace std::abort with OS::Abort so that we can handle
|
| - // restoring of signal handlers before aborting.
|
| if (kind_ == ASSERT) {
|
| + NOT_IN_PRODUCT(Profiler::DumpStackTrace(true /* native_stack_trace */));
|
| OS::Abort();
|
| }
|
| static bool failed = false;
|
|
|