This is the Msan portion of D22549, modified per the comments (and subsequent comments on this revision).
Variables that were formerly __thread will use GetMsanTLS() on Android. On non-Android, the variables are unchanged.
This requires new, corresponding changes to MemorySanitizer.cpp, to be updated shortly in D22550.
Is this because our cmake does not link ubsan runtime? Btw, don't you need to update cmake so that "msan" target exists on android?