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

Unified Diff: src/isolate.cc

Issue 2245483004: Fix wrong state of IsolateInBackgroundNotification and IsolateInForegroundNotification. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/isolate.cc
diff --git a/src/isolate.cc b/src/isolate.cc
index 859d91381b1c290b2b14a9523656739a82bef2e7..1aad57632f4d9bc2593d6df5f08578ef8085e3f4 100644
--- a/src/isolate.cc
+++ b/src/isolate.cc
@@ -3174,12 +3174,12 @@ void Isolate::SetRAILMode(RAILMode rail_mode) {
}
void Isolate::IsolateInBackgroundNotification() {
- is_isolate_in_background_ = false;
+ is_isolate_in_background_ = true;
heap()->ActivateMemoryReducerIfNeeded();
}
void Isolate::IsolateInForegroundNotification() {
- is_isolate_in_background_ = true;
+ is_isolate_in_background_ = false;
}
bool StackLimitCheck::JsHasOverflowed(uintptr_t gap) const {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698