remove remnants of support for running in no-thread-pointer mode
since 1.1.0, musl has nominally required a thread pointer to be setup.
most of the remaining code that was checking for its availability was
doing so for the sake of being usable by the dynamic linker. as of
commit 71f099cb7d, this is no longer
necessary; the thread pointer is now valid before any libc code
(outside of dynamic linker bootstrap functions) runs.
this commit essentially concludes "phase 3" of the "transition path
for removing lazy init of thread pointer" project that began during
the 1.1.0 release cycle.
This commit is contained in:
1 parent
71f099cb7d
commit
19a1fe670a
10 files changed
+13
-32
No files matched your search
@@ -122,7 +122,6 @@ _Noreturn void __pthread_exit(void *result)
|
||||
|
||||
void __do_cleanup_push(struct __ptcb *cb)
|
||||
{
|
||||
if (!libc.has_thread_pointer) return;
|
||||
struct pthread *self = __pthread_self();
|
||||
cb->__next = self->cancelbuf;
|
||||
self->cancelbuf = cb;
|
||||
@@ -130,7 +129,6 @@ void __do_cleanup_push(struct __ptcb *cb)
|
||||
|
||||
void __do_cleanup_pop(struct __ptcb *cb)
|
||||
{
|
||||
if (!libc.has_thread_pointer) return;
|
||||
__pthread_self()->cancelbuf = cb->__next;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user