diff options
author | Kostya Serebryany <kcc@google.com> | 2012-11-23 15:38:49 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2012-11-23 15:38:49 +0000 |
commit | f67ec2b6e8d2ae328c27de0b026eea2d6667836e (patch) | |
tree | 0620adeec02b25bba4f0d4ebb8b63912640b528e /lib/asan/asan_malloc_mac.cc | |
parent | 11e985f7e13fb41f55be82496dbfbf22e769ac4d (diff) | |
download | compiler-rt-f67ec2b6e8d2ae328c27de0b026eea2d6667836e.tar.gz |
[asan] get rid of some of the uses of kPageSize. The intent is to get rid of it completely to support platforms with multiple possible page sizes.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@168517 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/asan_malloc_mac.cc')
-rw-r--r-- | lib/asan/asan_malloc_mac.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/asan/asan_malloc_mac.cc b/lib/asan/asan_malloc_mac.cc index 5b47e120f..b32c18ef2 100644 --- a/lib/asan/asan_malloc_mac.cc +++ b/lib/asan/asan_malloc_mac.cc @@ -165,7 +165,7 @@ void *mz_valloc(malloc_zone_t *zone, size_t size) { return malloc_zone_valloc(system_malloc_zone, size); } GET_STACK_TRACE_HERE_FOR_MALLOC; - return asan_memalign(kPageSize, size, &stack); + return asan_memalign(GetPageSizeCached(), size, &stack); } #define GET_ZONE_FOR_PTR(ptr) \ |