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

Unified Diff: runtime/vm/isolate_reload.cc

Issue 2207643002: Narrow the scope of writable code to the forwarding phase of become instead of the whole isolate re… (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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/become.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/isolate_reload.cc
diff --git a/runtime/vm/isolate_reload.cc b/runtime/vm/isolate_reload.cc
index 8de0e283f0feaaba3299f70889c3ee964d24bbd3..583341182337ad54365cee2f101074df1a4b7c1b 100644
--- a/runtime/vm/isolate_reload.cc
+++ b/runtime/vm/isolate_reload.cc
@@ -463,11 +463,6 @@ void IsolateReloadContext::Reload(bool force_reload) {
// Disable the background compiler while we are performing the reload.
BackgroundCompiler::Disable();
- if (FLAG_write_protect_code) {
- // Disable code page write protection while we are reloading.
- I->heap()->WriteProtectCode(false);
- }
-
// Ensure all functions on the stack have unoptimized code.
EnsuredUnoptimizedCodeForStack();
// Deoptimize all code that had optimizing decisions that are dependent on
@@ -541,11 +536,6 @@ void IsolateReloadContext::FinalizeLoading() {
// information from scratch.
RebuildDirectSubclasses();
- if (FLAG_write_protect_code) {
- // Re-enable code page write protection.
- I->heap()->WriteProtectCode(true);
- }
-
BackgroundCompiler::Enable();
reload_aborted_ = HasReasonsForCancelling();
« no previous file with comments | « runtime/vm/become.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698