diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-08-03 19:45:21 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-08-03 19:45:21 -0400 |
commit | 730bee725a770b543181424b52203dd1634ab5d1 (patch) | |
tree | ef0eac3484242a94ce6854423c6b1cb3ecfcc76a /src/thread/pthread_create.c | |
parent | fc0ecd35d8e0041c81bbe08c10c7fcb946da85e0 (diff) | |
download | musl-730bee725a770b543181424b52203dd1634ab5d1.tar.gz musl-730bee725a770b543181424b52203dd1634ab5d1.tar.bz2 musl-730bee725a770b543181424b52203dd1634ab5d1.tar.xz musl-730bee725a770b543181424b52203dd1634ab5d1.zip |
fix static linking dependency bloat with cancellation
previously, pthread_cleanup_push/pop were pulling in all of
pthread_create due to dependency on the __pthread_unwind_next
function. this was not needed, as cancellation cleanup handlers can
never be called unless pthread_exit or pthread_cancel is reachable.
Diffstat (limited to 'src/thread/pthread_create.c')
-rw-r--r-- | src/thread/pthread_create.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/thread/pthread_create.c b/src/thread/pthread_create.c index adef510c..a6afd1e5 100644 --- a/src/thread/pthread_create.c +++ b/src/thread/pthread_create.c @@ -8,12 +8,7 @@ weak_alias(dummy_0, __synccall_lock); weak_alias(dummy_0, __synccall_unlock); weak_alias(dummy_0, __pthread_tsd_run_dtors); -#ifdef __pthread_unwind_next -#undef __pthread_unwind_next -#define __pthread_unwind_next __pthread_unwind_next_3 -#endif - -void __pthread_unwind_next(struct __ptcb *cb) +void __pthread_do_unwind(struct __ptcb *cb) { pthread_t self = pthread_self(); int n; |