ce0b7ab6c8
The previous approach managed the thread name in a separate buffer, which causes races because the thread name update (triggered by new samples) can happen at the same time as prof dumping (which reads the thread names) -- these two operations are under separate locks to avoid blocking each other. Implemented the thread name storage as part of the tdata struct, which resolves the lifetime issue and also avoids internal alloc / dalloc during prof_sample. |
||
---|---|---|
.. | ||
analyze | ||
include/test | ||
integration | ||
src | ||
stress | ||
unit | ||
test.sh.in |