Skip to content

Commit 8a48a1d

Browse files
committed
gh-154060: Clarify the main-thread status flag
1 parent fcae891 commit 8a48a1d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎InternalDocs/profiling_binary_format.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ The status byte is a bitfield encoding thread state at sample time:
220220
| 2 | THREAD_STATUS_UNKNOWN | Thread state could not be determined |
221221
| 3 | THREAD_STATUS_GIL_REQUESTED | Thread is waiting to acquire the GIL |
222222
| 4 | THREAD_STATUS_HAS_EXCEPTION | Thread has a pending exception |
223-
| 5 | THREAD_STATUS_MAIN_THREAD | Thread is the process's main thread |
223+
| 5 | THREAD_STATUS_MAIN_THREAD | Thread is the interpreter's main thread |
224224

225225
Multiple flags can be set simultaneously (e.g., a thread can hold the GIL
226226
while also running on CPU). Analysis tools use these to filter samples or

0 commit comments

Comments
 (0)