diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-02-20 10:18:12 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-02-20 10:18:12 +0000 |
commit | c5acd3d77e9fc3abef96a5ca6b745eb53789bbde (patch) | |
tree | 5783980ce504598c1d17486e8a87859c4e021d7e /nptl/pthread_create.c | |
parent | 12fd3c5f66b94059852514207952ddb682d03eb0 (diff) | |
download | glibc-c5acd3d77e9fc3abef96a5ca6b745eb53789bbde.tar.gz glibc-c5acd3d77e9fc3abef96a5ca6b745eb53789bbde.tar.xz glibc-c5acd3d77e9fc3abef96a5ca6b745eb53789bbde.zip |
Update.
* pthread_create.c (deallocate_tsd): Reset found_nonzero at the beginning of the loop. Clear the entire first block of TSD.
Diffstat (limited to 'nptl/pthread_create.c')
-rw-r--r-- | nptl/pthread_create.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nptl/pthread_create.c b/nptl/pthread_create.c index 89152ffeb9..bac7455af8 100644 --- a/nptl/pthread_create.c +++ b/nptl/pthread_create.c @@ -124,6 +124,9 @@ deallocate_tsd (struct pthread *pd) size_t cnt; size_t idx; + /* So far no new nonzero data entry. */ + found_nonzero = false; + for (cnt = idx = 0; cnt < PTHREAD_KEY_1STLEVEL_SIZE; ++cnt) if (pd->specific[cnt] != NULL) { |