* miscfuncs.cc (thread_wrapper): Remove unused _cygtls record.

* mmap.cc (is_mmapped_region): Avoid crash if no mmaps exist.
This commit is contained in:
Corinna Vinschen
2011-05-17 15:37:01 +00:00
parent 89d3b82ee5
commit 5e3af166d7
3 changed files with 10 additions and 2 deletions

View File

@ -412,6 +412,7 @@ thread_wrapper (VOID *arg)
it's actually used by the thread function. So what we do here is
to compute the stackbase of the application-provided stack, move
_my_tls to the stackbase, and change the stack pointer accordingly. */
_my_tls.remove (0);
wrapper_arg.stackaddr = (PVOID) ((PBYTE) wrapper_arg.stackaddr
+ wrapper_arg.stacksize);
_tlsbase = (char *) wrapper_arg.stackaddr;