Skip to content

Commit 26dc578

Browse files
authored
[dylink] Remove unused skip_dlsync thread-local flag. NFC (#26924)
1 parent aacbb9a commit 26dc578

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

system/lib/libc/dynlink.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,18 +83,13 @@ static struct dlevent* _Atomic tail = &main_event;
8383
#ifdef _REENTRANT
8484
static thread_local struct dlevent* thread_local_tail = &main_event;
8585
static pthread_mutex_t write_lock = PTHREAD_MUTEX_INITIALIZER;
86-
static thread_local bool skip_dlsync = false;
8786

8887
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;
9288
pthread_mutex_lock(&write_lock);
9389
}
9490

9591
static void do_write_unlock() {
9692
pthread_mutex_unlock(&write_lock);
97-
skip_dlsync = false;
9893
}
9994
#else // _REENTRANT
10095
#define do_write_unlock()

0 commit comments

Comments
 (0)