summaryrefslogtreecommitdiff
path: root/pthread_support.c
diff options
context:
space:
mode:
Diffstat (limited to 'pthread_support.c')
-rw-r--r--pthread_support.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pthread_support.c b/pthread_support.c
index 1753fa89..6430f60b 100644
--- a/pthread_support.c
+++ b/pthread_support.c
@@ -832,7 +832,7 @@ GC_INNER GC_thread GC_lookup_thread(thread_id_t id)
# endif
for (p = GC_threads[THREAD_TABLE_INDEX(id)];
p != NULL; p = p -> tm.next) {
- if (THREAD_ID_EQUAL(p -> id, id)) break;
+ if (EXPECT(THREAD_ID_EQUAL(p -> id, id), TRUE)) break;
}
return p;
}