Skip to content

Commit 805e6b6

Browse files
committed
fix
1 parent a67fef0 commit 805e6b6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Include/object.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -295,10 +295,10 @@ _Py_ThreadId(void)
295295
tid = (uintptr_t)__builtin_thread_pointer();
296296
#elif defined(HAVE_THREAD_ID_FALLBACK)
297297
// Hack: Using characteristics of TLS address mapping.
298-
// The address of the thread-local variable is not equal as the actual thread pointer,
298+
// The address of the thread-local variable is not equal with the actual thread pointer,
299299
// However, it has the property of being fixed at runtime, with no duplication of values
300-
// between different threads. Since it requires offset calculation, it is more expensive
301-
// than __builtin_thread_pointer().
300+
// between different threads. But since it requires offset calculation, this hack is more
301+
// expensive than __builtin_thread_pointer().
302302
tid = (uintptr_t)&__tp;
303303
#else
304304
# error "define _Py_ThreadId for this platform"

0 commit comments

Comments
 (0)