Avoid relocating DTV table and use linked list of mmap-ed pages.
I'd rather remove all these "inline"s.
Rename it to DTLS_NextBlock or something like that? "Resize" usually takes the desired size value.
This does not really matter because the atomics are used to synchronize with a signal handler on the same thread, but to avoid confusion I'd replace this with memory_order_seq_cst because the failure code path needs acquire semantics.
the test needs to be disabled on android, too. It glibc-specific, right?
This test case is causing failure on PowerPC buildbot http://lab.llvm.org:8011/#/builders/57/builds/1924/steps/7/logs/XPASS__SanitizerCommon-tsan-powerpc64le-Linux__res:
Unexpectedly Passed Tests (1):
SanitizerCommon-tsan-powerpc64le-Linux :: Linux/resize_tls_dynamic.cpp