Use LowMemoryNotification for GC

This commit is contained in:
Cheng Zhao 2016-04-13 16:38:39 +09:00
parent de51f2c1ba
commit 3780d9f033

View file

@ -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();