[PATCH] D39974: [scudo] Simplify initialization and flags

Kostya Kortchinsky via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 13 13:08:10 PST 2017


cryptoad created this revision.

This is mostly some cleanup and shouldn't affect functionalities.

Reviewing some code for a future addition, I realized that the complexity of
the initialization path was unnecessary, and so was maintaining a structure
for the allocator options throughout the initialization.

So we get rid of that structure, of an extraneous level of nesting for the
`init` function, and correct a couple of related code inaccuracies in the
flags cpp.


https://reviews.llvm.org/D39974

Files:
  lib/scudo/scudo_allocator.cpp
  lib/scudo/scudo_flags.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39974.122709.patch
Type: text/x-patch
Size: 5408 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171113/5be3b64e/attachment.bin>


More information about the llvm-commits mailing list