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

Unified Diff: runtime/vm/heap.cc

Issue 10830045: - Add the ability to protect VirtualMemory. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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.h ('k') | runtime/vm/object.cc » ('j') | runtime/vm/object.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/heap.cc
===================================================================
--- runtime/vm/heap.cc (revision 9969)
+++ runtime/vm/heap.cc (working copy)
@@ -226,6 +226,13 @@
}
+void Heap::Protect(VirtualMemory::Protection mode) {
+ new_space_->Protect(mode);
+ old_space_->Protect(mode);
+ code_space_->Protect(mode);
siva 2012/07/27 01:55:00 This seems weird here as we independently set the
Ivan Posva 2012/07/27 18:02:56 Done.
+}
+
+
uword Heap::TopAddress() {
return reinterpret_cast<uword>(new_space_->TopAddress());
}
« no previous file with comments | « runtime/vm/heap.h ('k') | runtime/vm/object.cc » ('j') | runtime/vm/object.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698