From: DongHyun Song Date: Thu, 17 Sep 2020 07:52:51 +0000 (+0900) Subject: [Service] Remove global.gc() X-Git-Tag: accepted/tizen/unified/20200923.093723~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=275f022e89171ece776f80e104eb8a3767240fde;p=platform%2Fframework%2Fweb%2Fwrtjs.git [Service] Remove global.gc() LowMemoryNotification() with repeat timer will replace global.gc() in JavascriptEnvironment side. Related chromium-efl patch: https://review.tizen.org/gerrit/244329 Change-Id: I18864ed3de3b3c7ac367f4d247e3e1b81a9c9564 Signed-off-by: DongHyun Song --- diff --git a/wrt_app/common/service_manager.ts b/wrt_app/common/service_manager.ts index 9637542..ea6e1df 100644 --- a/wrt_app/common/service_manager.ts +++ b/wrt_app/common/service_manager.ts @@ -21,14 +21,6 @@ export function startService(id: string, filename: string) { if (isMainThread) { let startService = __dirname + '/service_runner.js'; workers[id] = new Worker(startService, { workerData: { id: id, filename: filename } }); - workers[id].on('exit', () => { - try { - global.gc(); - console.log(`global.gc() is called by ${id}`); - } catch (e) { - console.log(`${e.name}: ${e.message}`); - } - }); } } }