| Index: runtime/vm/thread.cc
|
| diff --git a/runtime/vm/thread.cc b/runtime/vm/thread.cc
|
| index 164cca92453999a634ece9a9e8792db70100a48c..12d1ff75a6a32130663659454b1da7cffd182627 100644
|
| --- a/runtime/vm/thread.cc
|
| +++ b/runtime/vm/thread.cc
|
| @@ -453,7 +453,7 @@ uword Thread::GetCurrentStackPointer() {
|
| #endif
|
| // But for performance (and to support simulators), we normally use a local.
|
| #if defined(__has_feature)
|
| -#if __has_feature(address_sanitizer)
|
| +#if __has_feature(address_sanitizer) || __has_feature(safe_stack)
|
| uword current_sp = func();
|
| return current_sp;
|
| #else
|
|
|