SuccessChanges

Summary

  1. [ASAN] NFC: Copy address space when creating globals with redzones (details)
  2. tsan: increase dense slab alloc capacity (details)
  3. [ASAN] NFC: Use addrspace cast for pointers in non-zero addrspace (details)
Commit fc1df36e6e402cadb46befd32c4d195a4096477b by Reshabhkumar.Sharma
[ASAN] NFC: Copy address space when creating globals with redzones

This patch makes sure that globals in supported address spaces
will be replaced by globals with red zones in the same address
space by copying the address space.

Reviewed By: vitalybuka

Differential Revision: https://reviews.llvm.org/D101362
The file was modifiedllvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
Commit aff73487c986b519aac1e0b7fee6d7bef72e4002 by dvyukov
tsan: increase dense slab alloc capacity

We've got a user report about heap block allocator overflow.
Bump the L1 capacity of all dense slab allocators to maximum
and be careful to not page the whole L1 array in from .bss.
If OS uses huge pages, this still may cause a limited RSS increase
due to boundary huge pages, but avoiding that looks hard.

Reviewed By: vitalybuka

Differential Revision: https://reviews.llvm.org/D101161
The file was modifiedcompiler-rt/lib/tsan/rtl/tsan_dense_alloc.h
The file was modifiedcompiler-rt/lib/tsan/rtl/tsan_rtl.cpp
The file was modifiedcompiler-rt/lib/tsan/tests/unit/CMakeLists.txt
The file was modifiedcompiler-rt/lib/tsan/rtl/tsan_sync.h
The file was modifiedcompiler-rt/lib/tsan/tests/unit/tsan_dense_alloc_test.cpp
The file was modifiedcompiler-rt/lib/tsan/rtl/tsan_sync.cpp
The file was modifiedcompiler-rt/lib/tsan/rtl/tsan_clock.h
Commit 60c60dd1387742730b5cc756f8d92bac2e23c2b0 by Reshabhkumar.Sharma
[ASAN] NFC: Use addrspace cast for pointers in non-zero addrspace

Pointers in non-zero address spaces need to be address space
casted before appending to the used list.

Reviewed by: vitalybuka

Differential Revision: https://reviews.llvm.org/D101363
The file was modifiedllvm/lib/Transforms/Utils/ModuleUtils.cpp