profilo
profilo copied to clipboard
How to handle thread info if thead ID reuse?
Read the code ProcFS.cpp function ThreadCache::forEach and ThreadCache::forThread, the threads info map(cache_ ) get a thread info though the thread ID, but the thread ID can be reused, if so , the same thread ID is different threads, handle this situation or not? Thanks.
We currently do not do any deduplication/disambiguation because the kernel recycles tids on 16 bit overflow, and our traces are never long enough as to reach this limit.