| Index: runtime/vm/heap_test.cc
|
| diff --git a/runtime/vm/heap_test.cc b/runtime/vm/heap_test.cc
|
| index 11f2d4f0ffc46188f51da44ba26b0cb3e4055887..47cfafe2980823ee7141be0978929f50a3a33eb6 100644
|
| --- a/runtime/vm/heap_test.cc
|
| +++ b/runtime/vm/heap_test.cc
|
| @@ -213,7 +213,9 @@ class FindOnly : public FindObjectVisitor {
|
| public:
|
| FindOnly(Isolate* isolate, RawObject* target)
|
| : FindObjectVisitor(isolate), target_(target) {
|
| - ASSERT(isolate->no_safepoint_scope_depth() != 0);
|
| +#if defined(DEBUG)
|
| + EXPECT_GT(Thread::Current()->no_safepoint_scope_depth(), 0);
|
| +#endif
|
| }
|
| virtual ~FindOnly() { }
|
|
|
|
|