[PATCH] D60787: [scudo][standalone] Introduce the Secondary allocator

Kostya Kortchinsky via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 16 11:10:20 PDT 2019


cryptoad created this revision.
cryptoad added reviewers: eugenis, vitalybuka, hctim, morehouse.
Herald added subscribers: llvm-commits, Sanitizers, jfb, delcypher, mgorny.
Herald added projects: LLVM, Sanitizers.

The Secondary allocator wraps the platform allocation primitives. It is
meant to be used for larger sizes that the Primary can't fullfill, as
it will be slower, and sizes are multiple of the system page size.

This also changes some of the existing code, notably the opaque
platform data being passed to the platform specific functions: we can
shave a couple of syscalls on Fuchsia by storing additional data (this
addresses a TODO).


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D60787

Files:
  lib/scudo/standalone/CMakeLists.txt
  lib/scudo/standalone/common.h
  lib/scudo/standalone/fuchsia.cc
  lib/scudo/standalone/linux.cc
  lib/scudo/standalone/secondary.h
  lib/scudo/standalone/tests/CMakeLists.txt
  lib/scudo/standalone/tests/bytemap_test.cc
  lib/scudo/standalone/tests/map_test.cc
  lib/scudo/standalone/tests/mutex_test.cc
  lib/scudo/standalone/tests/secondary_test.cc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60787.195418.patch
Type: text/x-patch
Size: 21993 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190416/a5cad76f/attachment.bin>


More information about the llvm-commits mailing list