[PATCH] D58184: [scudo][standalone] Introduce platform specific code & mutexes

Kostya Kortchinsky via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 13 07:39:58 PST 2019


cryptoad created this revision.
cryptoad added reviewers: eugenis, vitalybuka, mcgrathr, phosek, flowerhack, morehouse.
Herald added subscribers: Sanitizers, jdoerfert, jfb, delcypher, mgorny, srhines.
Herald added projects: LLVM, Sanitizers.

This CL adds the platform specific code for Fuchsia, Linux & Android,
as well as some tests related to those (more tests to come later).
While some of it is pretty much a straight port of the existing scudo &
sanitizer_common code, the memory mapping functions have been reworked
a bit to fit the limited usage scenario that Scudo has for them.

For Fuchsia, I can now track the Vmar/Vmo pair for memory mappings if
there is an intent to grow or decommit some mapping (that will be
useful for the Primary).


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D58184

Files:
  lib/scudo/standalone/CMakeLists.txt
  lib/scudo/standalone/common.cc
  lib/scudo/standalone/common.h
  lib/scudo/standalone/fuchsia.cc
  lib/scudo/standalone/internal_defs.h
  lib/scudo/standalone/linux.cc
  lib/scudo/standalone/linux.h
  lib/scudo/standalone/mutex.h
  lib/scudo/standalone/tests/CMakeLists.txt
  lib/scudo/standalone/tests/atomic_test.cc
  lib/scudo/standalone/tests/list_test.cc
  lib/scudo/standalone/tests/map_test.cc
  lib/scudo/standalone/tests/mutex_test.cc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58184.186666.patch
Type: text/x-patch
Size: 39841 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190213/2a3f6119/attachment.bin>


More information about the llvm-commits mailing list