Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | debloat: use __syscall instead of syscall where possible | Rich Felker | 2011-04-17 | 1 | -1/+1 |
| | | | | | | don't waste time (and significant code size due to function call overhead!) setting errno when the result of a syscall does not matter or when it can't fail. | ||||
* | optimize cancellation enable/disable code | Rich Felker | 2011-04-17 | 1 | -0/+1 |
| | | | | | | | | | | | | | | | | | | the goal is to be able to use pthread_setcancelstate internally in the implementation, whenever a function might want to use functions which are cancellation points but avoid becoming a cancellation point itself. i could have just used a separate internal function for temporarily inhibiting cancellation, but the solution in this commit is better because (1) it's one less implementation-specific detail in functions that need to use it, and (2) application code can also get the same benefit. previously, pthread_setcancelstate dependend on pthread_self, which would pull in unwanted thread setup overhead for non-threaded programs. now, it temporarily stores the state in the global libc struct if threads have not been initialized, and later moves it if needed. this way we can instead use __pthread_self, which has no dependencies and assumes that the thread register is already valid. | ||||
* | use bss instead of mmap for main thread's pthread thread-specific data | Rich Felker | 2011-04-01 | 1 | -9/+3 |
| | | | | this simplifies code and removes a failure case | ||||
* | global cleanup to use the new syscall interface | Rich Felker | 2011-03-20 | 1 | -1/+1 |
| | |||||
* | optimize pthread initialization | Rich Felker | 2011-03-09 | 1 | -2/+2 |
| | | | | | | the set_tid_address returns the tid (which is also the pid when called from the initial thread) so there is no need to make a separate syscall to get pid/tid. | ||||
* | optimize POSIX TSD for fast pthread_getspecific | Rich Felker | 2011-03-03 | 1 | -0/+11 |
| | |||||
* | finish unifying thread register handling in preparation for porting | Rich Felker | 2011-02-15 | 1 | -9/+3 |
| | |||||
* | initial check-in, version 0.5.0 v0.5.0 | Rich Felker | 2011-02-12 | 1 | -0/+39 |