We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b71f2fc commit 6c4219fCopy full SHA for 6c4219f
compiler-rt/lib/lsan/lsan_common_mac.cpp
@@ -63,7 +63,7 @@ static pthread_once_t key_once = PTHREAD_ONCE_INIT;
63
// so we can't destroy it until it's been used and reset.
64
void restore_tid_data(void *ptr) {
65
thread_local_data_t *data = (thread_local_data_t *)ptr;
66
- if (data->current_thread_id)
+ if (data->current_thread)
67
pthread_setspecific(key, data);
68
}
69
0 commit comments