diff options
author | Christopher Faylor <me@cgf.cx> | 2005-05-19 03:30:02 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-05-19 03:30:02 +0400 |
commit | 24515d6563060fda3ad1d0cfa7bbb6936521895b (patch) | |
tree | c4d7561c0be3de56e4c9bf9019cc68543c53cb26 /winsup/cygwin/cygthread.cc | |
parent | 0a99fce172c2ca9898f084554f1199032315edea (diff) |
* cygtls.h (_local_storage::unknown_thread_name): New buffer.
* tlsoffsets.h: Regenerate.
* cygthread.cc (cygthread::name): Use new thread-local buffer.
* exceptions.cc (handle_exceptions): Avoid unnecessary initialization of static
variables to zero.
* fork.cc (slow_pid_reuse) Ditto.
Diffstat (limited to 'winsup/cygwin/cygthread.cc')
-rw-r--r-- | winsup/cygwin/cygthread.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/winsup/cygwin/cygthread.cc b/winsup/cygwin/cygthread.cc index 59b13be4f..d032b0f07 100644 --- a/winsup/cygwin/cygthread.cc +++ b/winsup/cygwin/cygthread.cc @@ -210,9 +210,8 @@ cygthread::name (DWORD tid) if (!res) { - static char buf[30] NO_COPY = {0}; - __small_sprintf (buf, "unknown (%p)", tid); - res = buf; + __small_sprintf (_my_tls.locals.unknown_thread_name, "unknown (%p)", tid); + res = _my_tls.locals.unknown_thread_name; } return res; |