From b992a8e1899091e3c180a050c1a63fa1e29886d5 Mon Sep 17 00:00:00 2001 From: hpayer Date: Fri, 12 Aug 2016 01:13:35 -0700 Subject: [PATCH] Fix wrong state of IsolateInBackgroundNotification and IsolateInForegroundNotification. BUG=chromium:636368,chromium:635965,chromium:634900 Review-Url: https://codereview.chromium.org/2245483004 Cr-Commit-Position: refs/heads/master@{#38598} --- src/isolate.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/isolate.cc b/src/isolate.cc index 859d91381b..1aad57632f 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 {