[all-commits] [llvm/llvm-project] 681773: scudo: Instead of exporting a pointer to the alloc...

pcc via All-commits all-commits at lists.llvm.org
Mon Feb 10 14:59:31 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 681773f2919ddf8af0e2ff3474a443df6a15a5e2
      https://github.com/llvm/llvm-project/commit/681773f2919ddf8af0e2ff3474a443df6a15a5e2
  Author: Peter Collingbourne <peter at pcc.me.uk>
  Date:   2020-02-10 (Mon, 10 Feb 2020)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/internal_defs.h
    M compiler-rt/lib/scudo/standalone/wrappers_c.cpp
    M compiler-rt/lib/scudo/standalone/wrappers_c_bionic.cpp
    M compiler-rt/lib/scudo/standalone/wrappers_cpp.cpp

  Log Message:
  -----------
  scudo: Instead of exporting a pointer to the allocator, export the allocator directly. NFCI.

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

Differential Revision: https://reviews.llvm.org/D74356




More information about the All-commits mailing list