http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59061

--- Comment #33 from Sergey Matveev <earthdok at google dot com> ---
(In reply to Kostya Serebryany from comment #32)
> > I think standalone LSan should support the max_alloc_fill_size flag. 
> 
> Mmm. Maybe... 
> max_alloc_fill_size in asan is there primarily to protect from filling huge
> allocations coming from LargeMmapAllocator
Ok, if we can afford to clear all small chunks entirely, we don't need that
flag since the large chunks are already cleared by mmap.

Apropos, the common allocator currently clears memory even for large chunks,
which needs to be fixed.

> >> I'll also change it to use real memset.
> 
> Using REAL(memset) in sanitizer_common may not be a great idea.
> (first of all, you can't do it easily)

What I meant is that LSan could clear the memory instead of relying on the
sanitizer allocator to do it. Then we'd only have to call memset() from the
LSan runtime. How soon will internal_memset() be on par with the library
implementation?

Reply via email to