[PATCH] D58723: [scudo][standalone] Add bytemap classes
Kostya Kortchinsky via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 1 08:28:32 PST 2019
cryptoad added inline comments.
================
Comment at: lib/scudo/standalone/bytemap.h:22
+ Map = reinterpret_cast<u8 *>(map(nullptr, Size, "scudo:bytemap"));
+ }
+ void init() { initLinkerInitialized(); }
----------------
morehouse wrote:
> Having two init functions is a little confusing. Would it make more sense to have a constexpr constructor and a single init() function?
With this I followed the way it was done in sanitizer_common with an init function that would skip the zero initialization if not needed (most our structures are either mapped or static). Would you have an example of what you are suggesting, I am not sure I fully understand how to organize it?
Repository:
rCRT Compiler Runtime
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D58723/new/
https://reviews.llvm.org/D58723
More information about the llvm-commits
mailing list