Do not store obsolete info about deleted threads

This commit is contained in:
Gliniak 2022-03-04 12:26:02 +01:00
parent b759cb23a5
commit 84e5b159c3
1 changed files with 1 additions and 3 deletions

View File

@ -528,9 +528,7 @@ void Processor::OnThreadDestroyed(uint32_t thread_id) {
auto global_lock = global_critical_region_.Acquire();
auto it = thread_debug_infos_.find(thread_id);
assert_true(it != thread_debug_infos_.end());
auto thread_info = it->second.get();
thread_info->state = ThreadDebugInfo::State::kZombie;
thread_info->thread = nullptr;
thread_debug_infos_.erase(it);
}
void Processor::OnThreadEnteringWait(uint32_t thread_id) {