[PATCH] D50782: [XRay][compiler-rt] Avoid InternalAlloc(...) in Profiling Mode

Dean Michael Berris via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 15 08:10:35 PDT 2018


dberris created this revision.
dberris added a reviewer: eizan.

We avoid using dynamic memory allocated with the internal allocator in
the profile collection service used by profiling mode. We use aligned
storage for globals and in-struct storage of objects we dynamically
initialize.

What we haven't removed yet is the use of the `Vector<...>` type, which
internally may be using the internal allocator implementation, which we
can migrate to using the `Array<...>` type instead.

This change partially addresses llvm.org/PR38577.


https://reviews.llvm.org/D50782

Files:
  compiler-rt/lib/xray/xray_profile_collector.cc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50782.160813.patch
Type: text/x-patch
Size: 10152 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180815/9d49590f/attachment.bin>


More information about the llvm-commits mailing list