Commit 15ba9a21 authored by Keishi Hattori's avatar Keishi Hattori Committed by Commit Bot

Oilpan: Finsh incremental marking if RAILMode changes to LOADING

Change-Id: I63eae05326391dcb2c62f571ac13650a6e2967b0
Reviewed-on: https://chromium-review.googlesource.com/1148210Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Commit-Queue: Keishi Hattori <keishi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#578604}
parent 13dfccf4
...@@ -572,6 +572,9 @@ class PLATFORM_EXPORT ThreadState final ...@@ -572,6 +572,9 @@ class PLATFORM_EXPORT ThreadState final
// Implementation for WebRAILModeObserver // Implementation for WebRAILModeObserver
void OnRAILModeChanged(v8::RAILMode new_mode) override { void OnRAILModeChanged(v8::RAILMode new_mode) override {
should_optimize_for_load_time_ = new_mode == v8::RAILMode::PERFORMANCE_LOAD; should_optimize_for_load_time_ = new_mode == v8::RAILMode::PERFORMANCE_LOAD;
if (should_optimize_for_load_time_ && IsIncrementalMarking() &&
GetGCState() == GCState::kIncrementalMarkingStepScheduled)
ScheduleIncrementalMarkingFinalize();
} }
private: private:
......
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