2 # define SANITIZER_WORDSIZE 64
4 # define SANITIZER_WORDSIZE 32
7 // This is a simplified version of GetMaxVirtualAddress function.
8 unsigned long SystemVMA () {
9 #if SANITIZER_WORDSIZE == 64
10 unsigned long vma
= (unsigned long)__builtin_frame_address(0);
11 return SANITIZER_WORDSIZE
- __builtin_clzll(vma
);
13 return SANITIZER_WORDSIZE
;