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

Unified Diff: runtime/vm/snapshot.cc

Issue 1374373004: Clarify heap write protection interface and use WritableVMIsolateScope to resolve issue 23217. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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/pages.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/snapshot.cc
diff --git a/runtime/vm/snapshot.cc b/runtime/vm/snapshot.cc
index 5875720e09df701fb0bfdd1a4dc64775c5be295e..d83606c1ee795c4b25459fe86a7093b0a68129a3 100644
--- a/runtime/vm/snapshot.cc
+++ b/runtime/vm/snapshot.cc
@@ -2008,19 +2008,6 @@ void FullSnapshotWriter::WriteIsolateFullSnapshot() {
}
-class WritableVMIsolateScope : StackResource {
- public:
- explicit WritableVMIsolateScope(Thread* thread) : StackResource(thread) {
- Dart::vm_isolate()->heap()->WriteProtect(false);
- }
-
- ~WritableVMIsolateScope() {
- ASSERT(Dart::vm_isolate()->heap()->UsedInWords(Heap::kNew) == 0);
- Dart::vm_isolate()->heap()->WriteProtect(true);
- }
-};
-
-
void FullSnapshotWriter::WriteFullSnapshot() {
if (!vm_isolate_is_symbolic_) {
// TODO(asiva): Don't mutate object headers during serialization.
« no previous file with comments | « runtime/vm/pages.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698