We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
skip_dlsync
1 parent aacbb9a commit 26dc578Copy full SHA for 26dc578
1 file changed
system/lib/libc/dynlink.c
@@ -83,18 +83,13 @@ static struct dlevent* _Atomic tail = &main_event;
83
#ifdef _REENTRANT
84
static thread_local struct dlevent* thread_local_tail = &main_event;
85
static pthread_mutex_t write_lock = PTHREAD_MUTEX_INITIALIZER;
86
-static thread_local bool skip_dlsync = false;
87
88
static void do_write_lock() {
89
- // Once we have the lock we want to avoid automatic code sync as that would
90
- // result in a deadlock.
91
- skip_dlsync = true;
92
pthread_mutex_lock(&write_lock);
93
}
94
95
static void do_write_unlock() {
96
pthread_mutex_unlock(&write_lock);
97
- skip_dlsync = false;
98
99
#else // _REENTRANT
100
#define do_write_unlock()
0 commit comments