Index: runtime/vm/stack_frame.cc |
diff --git a/runtime/vm/stack_frame.cc b/runtime/vm/stack_frame.cc |
index 40674cb107088173d422ee941c4f41caea34a378..1e7ffd6e21771e67e90fe0069c71a4668c300643 100644 |
--- a/runtime/vm/stack_frame.cc |
+++ b/runtime/vm/stack_frame.cc |
@@ -22,9 +22,9 @@ namespace dart { |
bool StackFrame::IsStubFrame() const { |
ASSERT(!(IsEntryFrame() || IsExitFrame())); |
-#if !defined(HOST_OS_WINDOWS) |
- // On Windows, the profiler calls this from a separate thread where |
- // Thread::Current() is NULL, so we cannot create a NoSafepointScope. |
+#if !defined(HOST_OS_WINDOWS) && !defined(HOST_OS_FUCHSIA) |
+ // On Windows and Fuchsia, the profiler calls this from a separate thread |
+ // where Thread::Current() is NULL, so we cannot create a NoSafepointScope. |
NoSafepointScope no_safepoint; |
#endif |
RawCode* code = GetCodeObject(); |
@@ -218,9 +218,9 @@ RawCode* StackFrame::LookupDartCode() const { |
// We add a no gc scope to ensure that the code below does not trigger |
// a GC as we are handling raw object references here. It is possible |
// that the code is called while a GC is in progress, that is ok. |
-#if !defined(HOST_OS_WINDOWS) |
- // On Windows, the profiler calls this from a separate thread where |
- // Thread::Current() is NULL, so we cannot create a NoSafepointScope. |
+#if !defined(HOST_OS_WINDOWS) && !defined(HOST_OS_FUCHSIA) |
+ // On Windows and Fuchsia, the profiler calls this from a separate thread |
+ // where Thread::Current() is NULL, so we cannot create a NoSafepointScope. |
NoSafepointScope no_safepoint; |
#endif |
RawCode* code = GetCodeObject(); |