1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

Revert "Patch 3/4 of the effort to make TLS access async-signal-safe."

This reverts commit 35e8f7ab94.
This commit is contained in:
Allan McRae
2014-02-05 21:21:00 +10:00
parent dd654bf9ba
commit 8b6785f083
5 changed files with 5 additions and 26 deletions

View File

@ -242,7 +242,11 @@ get_cached_stack (size_t *sizep, void **memp)
/* Clear the DTV. */
dtv_t *dtv = GET_DTV (TLS_TPADJ (result));
_dl_clear_dtv (dtv);
for (size_t cnt = 0; cnt < dtv[-1].counter; ++cnt)
if (! dtv[1 + cnt].pointer.is_static
&& dtv[1 + cnt].pointer.val != TLS_DTV_UNALLOCATED)
free (dtv[1 + cnt].pointer.val);
memset (dtv, '\0', (dtv[-1].counter + 1) * sizeof (dtv_t));
/* Re-initialize the TLS. */
_dl_allocate_tls_init (TLS_TPADJ (result));