Commit b992a8e1 authored by hpayer's avatar hpayer Committed by Commit bot

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}
parent e6e32315
...@@ -3174,12 +3174,12 @@ void Isolate::SetRAILMode(RAILMode rail_mode) { ...@@ -3174,12 +3174,12 @@ void Isolate::SetRAILMode(RAILMode rail_mode) {
} }
void Isolate::IsolateInBackgroundNotification() { void Isolate::IsolateInBackgroundNotification() {
is_isolate_in_background_ = false; is_isolate_in_background_ = true;
heap()->ActivateMemoryReducerIfNeeded(); heap()->ActivateMemoryReducerIfNeeded();
} }
void Isolate::IsolateInForegroundNotification() { void Isolate::IsolateInForegroundNotification() {
is_isolate_in_background_ = true; is_isolate_in_background_ = false;
} }
bool StackLimitCheck::JsHasOverflowed(uintptr_t gap) const { bool StackLimitCheck::JsHasOverflowed(uintptr_t gap) const {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment