Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
i#3526: Apply i#2089 scheme to client threads.
When creating client threads, we still attempted to invalidate the thread's TLS by writing a null selector to its segment register. In 64-bit mode, this seemed to work most of the time because presumably Intel and AMD are then zero'ing out the upper 32-bit of the hidden segment's base. Intel describes this in Vol. 3A 3.4.4, although not completely clear. This patch applies the same scheme introduced and described in #2089. Before this patch, the test code_api|client.thread ran into all kinds of assertions, because the client thread interfered with the parent's TLS. These failures are now gone. Fixes #3526 Issue: #2089
- Loading branch information