mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
perf: remove GC timer that fired once per minute. (#26053)
Co-authored-by: Charles Kerr <charles@charleskerr.com>
This commit is contained in:
@@ -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());
|
||||
|
||||
|
||||
@@ -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_;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user