[PATCH] D74356: scudo: Instead of exporting a pointer to the allocator, export the allocator directly. NFCI.

Peter Collingbourne via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 10 13:48:42 PST 2020


pcc created this revision.
pcc added a reviewer: cryptoad.
Herald added projects: Sanitizers, LLVM.
Herald added a subscriber: Sanitizers.

This lets us remove two pointer indirections (one by removing the pointer,
and another by making the AllocatorPtr declaration hidden) in the C++ wrappers.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D74356

Files:
  compiler-rt/lib/scudo/standalone/internal_defs.h
  compiler-rt/lib/scudo/standalone/wrappers_c.cpp
  compiler-rt/lib/scudo/standalone/wrappers_c_bionic.cpp
  compiler-rt/lib/scudo/standalone/wrappers_cpp.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74356.243667.patch
Type: text/x-patch
Size: 9372 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200210/b3111233/attachment.bin>


More information about the llvm-commits mailing list