mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
Call GC_gcollect_and_unmap and GC_invoke_finalizers on Global::finalize
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
This commit is contained in:
parent
ef5ef0b9b4
commit
4a4f8a6d7e
1 changed files with 5 additions and 0 deletions
|
|
@ -75,6 +75,11 @@ void Global::finalize()
|
|||
std::vector<Waiter*>().swap(g_waiter);
|
||||
#endif
|
||||
|
||||
GC_gcollect_and_unmap();
|
||||
GC_gcollect_and_unmap();
|
||||
GC_gcollect_and_unmap();
|
||||
GC_invoke_finalizers();
|
||||
|
||||
delete g_platform;
|
||||
g_platform = nullptr;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue