HomePhabricator

[sanitizer] Improve accuracy of GetTls on x86/s390

Authored by MaskRay on Mon, Mar 29, 10:14 PM.

Description

[sanitizer] Improve accuracy of GetTls on x86/s390

The previous code may underestimate the static TLS surplus part, which may cause
false positives to LeakSanitizer if a dynamically loaded module uses the surplus
and there is an allocation only referenced by a thread's TLS.

Details