[compiler-rt] Fix memory allocator for dynamic address space
authorEtienne Bergeron <etienneb@google.com>
Thu, 4 Aug 2016 18:15:38 +0000 (18:15 +0000)
committerEtienne Bergeron <etienneb@google.com>
Thu, 4 Aug 2016 18:15:38 +0000 (18:15 +0000)
commit27eb6d521e976e803ed2468778b0eafcd6b12ae4
tree7328f4d4b36f3d0c266c47fcb02b503ef0ca7908
parent80f2eec4b2ef99243200336354f6879a1098aa07
[compiler-rt] Fix memory allocator for dynamic address space

Summary:
The sanitizer allocators can works with a dynamic address space
(i.e. specified with ~0ULL).

Unfortunately, the code was broken on GetMetadata and GetChunkIdx.

The current patch is moving the Win64 memory test to a dynamic
address space. There is a migration to move every concept to a
dynamic address space on windows.

To have a better coverage, the unittest are now testing
dynamic address space on other platforms too.

Reviewers: rnk, kcc

Subscribers: kubabrecka, dberris, llvm-commits, chrisha

Differential Revision: https://reviews.llvm.org/D23170

llvm-svn: 277745
compiler-rt/lib/sanitizer_common/sanitizer_allocator_primary64.h
compiler-rt/lib/sanitizer_common/sanitizer_win.cc
compiler-rt/lib/sanitizer_common/tests/sanitizer_allocator_test.cc