|
|
|
|
|
by dwattttt
153 days ago
|
|
Optimising out TLS isn't going to be a good example of compiler capability. Whether another thread exists is a global property of a process, and beyond that the system that process operates in. The compiler isn't going to know for instance that an LD_PRELOAD variable won't be set that would create a thread. |
|
TLS is a language feature. Whether another thread exists doesn't mean it has to use the same facilities as the main program.
> The compiler isn't going to know for instance that an LD_PRELOAD variable won't be set that would create a thread.
Say the program is not dynamically linked. Still no?