[Service] Call global.gc() when terminating a service 79/243879/8
authorYoungsoo Choi <kenshin.choi@samsung.com>
Fri, 11 Sep 2020 01:38:21 +0000 (18:38 -0700)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 15 Sep 2020 02:36:08 +0000 (19:36 -0700)
commita7074bcb103eefddf99c5ee94e52a661db318c37
treeaf33a3cd2c025d9eab89805ce30277d03dbf4fc4
parent6f0e9a8166b86205c77bb5c22b2dd8ea4df21642
[Service] Call global.gc() when terminating a service

This calls global.gc() when a service app is terminated.
Approximately, 1 MB memory is saved by this.

Also, the main thread is immediately terminated
when there's no running worker thread for service app.

Together with:
https://review.tizen.org/gerrit/243858

Change-Id: Iab70e9aadedb19295a3784fb5cc3dc1300412995
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
wrt_app/common/service_manager.ts