On Tue, Jan 20, 2015 at 2:35 PM, Venkataramanan Kumar
<[email protected]> wrote:
> Hi all,
>
> While trying to use tsan on Aarch64, I am getting mmap failure.
>
> __sanitizer::internal_mmap (addr=0x7d0000000000, length=1099511627776, prot=0,
>     flags=16434, fd=-1, offset=0)
>
>  p syscall(222, 0x7d00000000, 1099511627776, 0, 16434, -1,0,0)
> $34 = -1
>
>
> // SizeClassAllocator64 -- allocator for 64-bit address space.
> //
> // Space: a portion of address space of kSpaceSize bytes starting at
> // a fixed address (kSpaceBeg). Both constants are powers of two and
> // kSpaceBeg is kSpaceSize-aligned.
> // At the beginning the entire space is mprotect-ed, then small parts of it
> // are mapped on demand.
> //
>
>
> The kSpaceBeg seem to be  0x7d00000000 by default and kSpaceSize seem
> to be 1099511627776.
>
> I am trying to understand where these default values are set?

[email protected]
[email protected] to bcc

Hi Venkat,

All memory ranges are specified here:

http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/tsan_platform.h?view=markup

In particular, you are looking for kHeapMemBeg and kHeapMemEnd constants.

-- 
You received this message because you are subscribed to the Google Groups 
"address-sanitizer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.
  • kSpaceBeg for tsan Venkataramanan Kumar
    • Re: kSpaceBeg for tsan 'Dmitry Vyukov' via address-sanitizer

Reply via email to