profilo icon indicating copy to clipboard operation
profilo copied to clipboard

How to handle thread info if thead ID reuse?

Open oujunli opened this issue 8 years ago • 1 comments

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.

oujunli avatar Jul 28 '18 00:07 oujunli

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.

ricardorey10 avatar Jul 30 '18 18:07 ricardorey10