aboutsummaryrefslogtreecommitdiff
path: root/src/env (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-03-06fix over-alignment of TLS, insufficient builtin TLS on 64-bit archsRich Felker2-4/+16
a conservative estimate of 4*sizeof(size_t) was used as the minimum alignment for thread-local storage, despite the only requirements being alignment suitable for struct pthread and void* (which struct pthread already contains). additional alignment required by the application or libraries is encoded in their headers and is already applied. over-alignment prevented the builtin_tls array from ever being used in dynamic-linked programs on 64-bit archs, thereby requiring allocation at startup even in programs with no TLS of their own.