Skip to content

Commit

Permalink
[compiler-rt] Set asan win 64-bits to use dynamic address for memory …
Browse files Browse the repository at this point in the history
…allocator

Summary:
ASAN on Windows 64-bits should use a dynamic address instead of a fixed one.
The asan-allocator code to support dynamic address is already landed.
This patch is turning on the feature.

Reviewers: rnk

Subscribers: kubabrecka, dberris, llvm-commits, chrisha

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

llvm-svn: 281522
  • Loading branch information
bergeret committed Sep 14, 2016
1 parent 97bdc72 commit 780507c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions compiler-rt/lib/asan/asan_allocator.h
Expand Up @@ -130,6 +130,10 @@ typedef VeryCompactSizeClassMap SizeClassMap;
const uptr kAllocatorSpace = 0x10000000000ULL;
const uptr kAllocatorSize = 0x10000000000ULL; // 3T.
typedef DefaultSizeClassMap SizeClassMap;
# elif SANITIZER_WINDOWS
const uptr kAllocatorSpace = ~(uptr)0;
const uptr kAllocatorSize = 0x8000000000ULL; // 500G
typedef DefaultSizeClassMap SizeClassMap;
# else
const uptr kAllocatorSpace = 0x600000000000ULL;
const uptr kAllocatorSize = 0x40000000000ULL; // 4T.
Expand Down

0 comments on commit 780507c

Please sign in to comment.