Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(590)

Unified Diff: runtime/vm/heap_test.cc

Issue 1250463004: Migrate NoSafepointScope; add constrained concurrent allocation to unit test (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Assert current thread is mutator; add shared assertion macro. Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/heap.cc ('k') | runtime/vm/object.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() { }
« no previous file with comments | « runtime/vm/heap.cc ('k') | runtime/vm/object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698