[PATCH] [ASan] Introduce AllocatorOptions to configure allocator behavior.
Alexey Samsonov
vonosmas at gmail.com
Wed Dec 17 17:26:08 PST 2014
================
Comment at: lib/asan/asan_allocator.cc:222
@@ +221,3 @@
+ atomic_uint8_t alloc_dealloc_mismatch;
+ atomic_uint32_t min_redzone;
+ atomic_uint32_t max_redzone;
----------------
kcc wrote:
> maybe u16?
Done
================
Comment at: lib/asan/asan_allocator.h:35
@@ +34,3 @@
+struct AllocatorOptions {
+ bool may_return_null;
+ uptr quarantine_size;
----------------
kcc wrote:
> 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
Done
================
Comment at: lib/asan/asan_allocator.h:38
@@ +37,3 @@
+ bool alloc_dealloc_mismatch;
+ int min_redzone;
+ int max_redzone;
----------------
kcc wrote:
> maybe u16?
Done
http://reviews.llvm.org/D6711
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
More information about the llvm-commits
mailing list