From 6f49f0c92671dac57ae10901ba2db5b8c1432a29 Mon Sep 17 00:00:00 2001 From: Artem Udovichenko Date: Sat, 25 Mar 2023 16:38:52 +0300 Subject: [PATCH] Call OnThreadTerminate Since this method is not called from DestroyInternalResources Change-Id: I5cf779c1d159a0f9cdcb0bf4a8137121a5647a64 Signed-off-by: Artem Udovichenko --- runtime/ecma_vm.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/runtime/ecma_vm.cpp b/runtime/ecma_vm.cpp index 63295d348..900e3ff49 100644 --- a/runtime/ecma_vm.cpp +++ b/runtime/ecma_vm.cpp @@ -369,6 +369,7 @@ void EcmaVM::SaveProfileInfo() void EcmaVM::UninitializeThreads() { + GetGC()->OnThreadTerminate(thread_); thread_->NativeCodeEnd(); thread_->UpdateStatus(ThreadStatus::FINISHED); } -- Gitee