Do not store obsolete info about deleted threads
This commit is contained in:
@@ -528,9 +528,7 @@ void Processor::OnThreadDestroyed(uint32_t thread_id) {
|
|||||||
auto global_lock = global_critical_region_.Acquire();
|
auto global_lock = global_critical_region_.Acquire();
|
||||||
auto it = thread_debug_infos_.find(thread_id);
|
auto it = thread_debug_infos_.find(thread_id);
|
||||||
assert_true(it != thread_debug_infos_.end());
|
assert_true(it != thread_debug_infos_.end());
|
||||||
auto thread_info = it->second.get();
|
thread_debug_infos_.erase(it);
|
||||||
thread_info->state = ThreadDebugInfo::State::kZombie;
|
|
||||||
thread_info->thread = nullptr;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Processor::OnThreadEnteringWait(uint32_t thread_id) {
|
void Processor::OnThreadEnteringWait(uint32_t thread_id) {
|
||||||
|
|||||||
Reference in New Issue
Block a user