perf: remove GC timer that fired once per minute. (#26053)

Co-authored-by: Charles Kerr <charles@charleskerr.com>
This commit is contained in:
trop[bot]
2020-10-19 20:19:28 -07:00
committed by GitHub
parent 9d72cda6c4
commit 1bc5b7f350
2 changed files with 0 additions and 7 deletions

View File

@@ -475,11 +475,6 @@ void ElectronBrowserMainParts::PreMainMessageLoopRun() {
ui::TouchFactory::SetTouchDeviceListFromCommandLine();
#endif
// Start idle gc.
gc_timer_.Start(FROM_HERE, base::TimeDelta::FromMinutes(1),
base::BindRepeating(&v8::Isolate::LowMemoryNotification,
base::Unretained(js_env_->isolate())));
content::WebUIControllerFactory::RegisterFactory(
ElectronWebUIControllerFactory::GetInstance());

View File

@@ -160,8 +160,6 @@ class ElectronBrowserMainParts : public content::BrowserMainParts {
std::unique_ptr<ElectronExtensionsBrowserClient> extensions_browser_client_;
#endif
base::RepeatingTimer gc_timer_;
// List of callbacks should be executed before destroying JS env.
std::list<base::OnceClosure> destructors_;