Skip to content

Commit f6f943b

Browse files
author
Saul Cooperman
committed
Add comment to getThreadFromInterpreterState
1 parent a2ae327 commit f6f943b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/pystack/_pystack/pythread.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,8 @@ getThreadFromInterpreterState(
410410
const std::shared_ptr<const AbstractProcessManager>& manager,
411411
remote_addr_t addr)
412412
{
413+
// `tid_offset_in_pthread_struct` is only used in `inferTidFromPThreadStructure`, which is only
414+
// needed for Python versions < 3.11.
413415
if (tid_offset_in_pthread_struct == 0 && !manager->versionIsAtLeast(3, 11)) {
414416
tid_offset_in_pthread_struct = findPthreadTidOffset(manager, addr);
415417
}

0 commit comments

Comments
 (0)