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

Unified Diff: runtime/vm/pages.cc

Issue 1181943002: Assert no allocation during heap iteration; fix unsafe iteration in ObjectGraph. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: spelling fix Created 5 years, 6 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_graph.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/pages.cc
diff --git a/runtime/vm/pages.cc b/runtime/vm/pages.cc
index 810554a448ecd89645530971a8956b32f5c3c0ca..18eec36fe8a23a9102705f2b4ebeb7f99636d6cb 100644
--- a/runtime/vm/pages.cc
+++ b/runtime/vm/pages.cc
@@ -83,6 +83,7 @@ void HeapPage::Deallocate() {
void HeapPage::VisitObjects(ObjectVisitor* visitor) const {
+ NoSafepointScope no_safepoint;
uword obj_addr = object_start();
uword end_addr = object_end();
while (obj_addr < end_addr) {
@@ -95,6 +96,7 @@ void HeapPage::VisitObjects(ObjectVisitor* visitor) const {
void HeapPage::VisitObjectPointers(ObjectPointerVisitor* visitor) const {
+ NoSafepointScope no_safepoint;
uword obj_addr = object_start();
uword end_addr = object_end();
while (obj_addr < end_addr) {
« no previous file with comments | « runtime/vm/object_graph.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698