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

Unified Diff: runtime/vm/runtime_entry.cc

Issue 2411453003: Fix --verify-on-transition for OSR and concurrent sweep. (Closed)
Patch Set: Created 4 years, 2 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/object.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/runtime_entry.cc
diff --git a/runtime/vm/runtime_entry.cc b/runtime/vm/runtime_entry.cc
index a0826367b1f9d067cadeca01c6fed8975d0e61d3..68b2fd74923a7bda4e133cfe194e75087bcadc3f 100644
--- a/runtime/vm/runtime_entry.cc
+++ b/runtime/vm/runtime_entry.cc
@@ -10,6 +10,17 @@
namespace dart {
+#if defined(TESTING) || defined(DEBUG)
+void VerifyOnTransition() {
+ Thread* thread = Thread::Current();
+ TransitionGeneratedToVM transition(thread);
+ thread->isolate()->heap()->WaitForSweeperTasks();
+ SafepointOperationScope safepoint_scope(thread);
+ VerifyPointersVisitor::VerifyPointers();
+ thread->isolate()->heap()->Verify();
+}
+#endif
+
// Add function to a class and that class to the class dictionary so that
// frame walking can be used.
« no previous file with comments | « runtime/vm/object.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698