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
- Repository
- rL LLVM
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 | ||
---|---|---|
222 ↗ | (On Diff #17410) | maybe u16? |
lib/asan/asan_allocator.h | ||
35 ↗ | (On Diff #17410) | group the fields so that the struct is as small as possible. |
38 ↗ | (On Diff #17410) | maybe u16? |