diff --git a/runtime/ecma_vm.cpp b/runtime/ecma_vm.cpp index 63295d3483f3b021d107953f251cb32bf8ee4e14..900e3ff49a0c57453524461aeb26b4ed3d914d16 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); }