Use LowMemoryNotification for GC
This commit is contained in:
parent
de51f2c1ba
commit
3780d9f033
1 changed files with 2 additions and 3 deletions
|
@ -136,9 +136,8 @@ void AtomBrowserMainParts::PreMainMessageLoopRun() {
|
||||||
// Start idle gc.
|
// Start idle gc.
|
||||||
gc_timer_.Start(
|
gc_timer_.Start(
|
||||||
FROM_HERE, base::TimeDelta::FromMinutes(1),
|
FROM_HERE, base::TimeDelta::FromMinutes(1),
|
||||||
base::Bind(base::IgnoreResult(&v8::Isolate::IdleNotification),
|
base::Bind(&v8::Isolate::LowMemoryNotification,
|
||||||
base::Unretained(js_env_->isolate()),
|
base::Unretained(js_env_->isolate())));
|
||||||
1000));
|
|
||||||
|
|
||||||
brightray::BrowserMainParts::PreMainMessageLoopRun();
|
brightray::BrowserMainParts::PreMainMessageLoopRun();
|
||||||
bridge_task_runner_->MessageLoopIsReady();
|
bridge_task_runner_->MessageLoopIsReady();
|
||||||
|
|
Loading…
Reference in a new issue