Sparc ASAN

Konstantin Serebryany konstantin.s.serebryany@gmail.com
Wed Nov 21 15:40:00 GMT 2012


On Wed, Nov 21, 2012 at 7:29 PM, David Miller <davem@davemloft.net> wrote:
> From: Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
> Date: Wed, 21 Nov 2012 17:39:05 +0400
>
>> Today, kPageSize is used in several places where it is expected to be
>> a compile-time constant.
>> Even if it seems like replacing it with GetPageSize() is safe, it
>> would need very significant testing (including performance testing).
>> Can we just define kPageSize=1UL<<13 under ifdef __sparc__?
>>
>> What are the possible page size values for SPARC?
>
> 4K, 8K, 64K, 512K
>
> It's not a constant and the library really cannot expect it to be one.

How often 64K and 512K are used?
If we use kPageSize=8K, will this cover most of the use cases?

x86 also supports 2M and 1G pages. asan does not support those and no
one complained so far.
There are various other things that asan library does not support.

--kcc



More information about the Gcc-patches mailing list