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

Unified Diff: runtime/vm/dart.cc

Issue 106593002: Write protect executable pages in the VM. Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years 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/code_patcher.cc ('k') | runtime/vm/debugger.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/dart.cc
diff --git a/runtime/vm/dart.cc b/runtime/vm/dart.cc
index 2633f255980438e6a322aa8395d86e7678f70eed..fb344e1a286962e3243d424e8e4c06c5ca289997 100644
--- a/runtime/vm/dart.cc
+++ b/runtime/vm/dart.cc
@@ -129,6 +129,7 @@ const char* Dart::InitOnce(Dart_IsolateCreateCallback create,
}
#endif
PremarkingVisitor premarker(vm_isolate_);
+ vm_isolate_->heap()->WriteProtect(false);
vm_isolate_->heap()->IterateOldObjects(&premarker);
vm_isolate_->heap()->WriteProtect(true);
}
« no previous file with comments | « runtime/vm/code_patcher.cc ('k') | runtime/vm/debugger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698