Reduce the dependency of allocator code on runtime flags. Instead,
pass a bunch of options that configure allocator behavior at
initialization or re-initialization. That would allow us to
cleaner modify allocator behavior during a program execution
when ASan is activated or de-activated.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Some of these options may be accessed on fast path, so I'd like to have the struct as small as possible
lib/asan/asan_allocator.cc | ||
---|---|---|
230 | maybe u16? | |
lib/asan/asan_allocator.h | ||
36 | group the fields so that the struct is as small as possible. | |
39 | maybe u16? |
group the fields so that the struct is as small as possible.
also make quarantine_size quarantine_size_mb (for now, only the internal one, but I'd love to make the external flag to be _mb too).
and make it u32