Index: runtime/vm/stack_frame_test.cc |
diff --git a/runtime/vm/stack_frame_test.cc b/runtime/vm/stack_frame_test.cc |
index 7adb82ea60c71eaa4fb0bda48a152ea3ad6eb551..1ea01f44717352b74918f06ba7c5cda3c29483c5 100644 |
--- a/runtime/vm/stack_frame_test.cc |
+++ b/runtime/vm/stack_frame_test.cc |
@@ -56,7 +56,10 @@ void FUNCTION_NAME(StackFrame_frameCount)(Dart_NativeArguments args) { |
while (frames.NextFrame() != NULL) { |
count += 1; // Count the frame. |
} |
- VerifyPointersVisitor::VerifyPointers(); |
+ { |
+ TransitionNativeToVM transition(Thread::Current()); |
+ VerifyPointersVisitor::VerifyPointers(); |
+ } |
NativeArguments* arguments = reinterpret_cast<NativeArguments*>(args); |
arguments->SetReturn(Object::Handle(Smi::New(count))); |
} |
@@ -68,7 +71,10 @@ void FUNCTION_NAME(StackFrame_dartFrameCount)(Dart_NativeArguments args) { |
while (frames.NextFrame() != NULL) { |
count += 1; // Count the dart frame. |
} |
- VerifyPointersVisitor::VerifyPointers(); |
+ { |
+ TransitionNativeToVM transition(Thread::Current()); |
+ VerifyPointersVisitor::VerifyPointers(); |
+ } |
NativeArguments* arguments = reinterpret_cast<NativeArguments*>(args); |
arguments->SetReturn(Object::Handle(Smi::New(count))); |
} |