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

This commit is contained in:
Charles Kerr 2020-10-19 20:31:02 -05:00 committed by GitHub
parent 12e3c85081
commit ae5de3d9c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 7 deletions

View file

@ -405,11 +405,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

@ -158,8 +158,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_;